You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
var crypto = require("crypto");
var hash = crypto.createHash("sha1");
I get the following error:
crypto:3638
return new Hash(hash);
^
TypeError: undefined is not a function
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
at Object.createHash (crypto:3638:10)
at Object. (/cygdrive/c/development/javeline/ide/sha1.js:2:19)
at Module._compile (module:384:23)
at Module._loadScriptSync (module:393:8)
at Module.loadSync (module:296:10)
at Object.runMain (module:447:22)
at node.js:208:10
The text was updated successfully, but these errors were encountered:
Running this snippet in node 0.1.98 from cygwin
var crypto = require("crypto");
var hash = crypto.createHash("sha1");
I get the following error:
crypto:3638
return new Hash(hash);
^
TypeError: undefined is not a function
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
at Object.createHash (crypto:3638:10)
at Object. (/cygdrive/c/development/javeline/ide/sha1.js:2:19)
at Module._compile (module:384:23)
at Module._loadScriptSync (module:393:8)
at Module.loadSync (module:296:10)
at Object.runMain (module:447:22)
at node.js:208:10
The text was updated successfully, but these errors were encountered: