-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with node --frozen-intrinsics security option #53
Comments
I haven't looked at |
$ ../node --frozen-intrinsics -e 'require("depd")("foo")'
/home/me/node-v20.14.0-linux-x64/bin/foo/node_modules/depd/index.js:268
var file = callSite.getFileName() || '<anonymous>'
^
TypeError: callSite.getFileName is not a function
at callSiteLocation (/home/me/node-v20.14.0-linux-x64/bin/foo/node_modules/depd/index.js:268:23)
at depd (/home/me/node-v20.14.0-linux-x64/bin/foo/node_modules/depd/index.js:109:14)
at [eval]:1:16
at runScriptInThisContext (node:internal/vm:209:10)
at node:internal/process/execution:118:14
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:101:62)
at evalScript (node:internal/process/execution:133:3)
at node:internal/main/eval_string:51:3
Node.js v20.14.0 The only difference is that the feature is no longer experimental in Node.js v20. (fwiw v22.3.0 yields the same result as v20). |
Ok, thanks. When I get home tonight I will file another bug report on Node.js to see what the the solution is or to re make them aware it is still broken. |
(note: this is a dupe of #50, but with a clear focus on security)
I've started to use the node
--frozen-intrinsics
option on more and more projects as recommended by the Node.js Security Best Practices because it mitigates the risk of monkey patching.When trying to run some 3rd party code that depends on depd it fails to start when the option is used:
I was wondering what the current status is for supporting this option?
See also the discussion around the
--disallow-code-generation-from-strings
security option in #41.The text was updated successfully, but these errors were encountered: