-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
--disallow-code-generation-from-strings does not work as documented #58221
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
Comments
wait, the official nodejs docs only covers In the example U brought, only the last line (bellow) executes the code even with the flag
and the docs does not cover that refs: https://nodejs.org/docs/latest-v16.x/api/cli.html#--disallow-code-generation-from-strings |
Doc states:
|
@ChALkeR you are right! @mojodna @bmizerany need your opinion about this please. |
The flag
There are many APIs in Node.js' module system, and |
Um, maybe it should not cover that? |
Doc: https://nodejs.org/docs/latest/api/cli.html#--disallow-code-generation-from-strings
It is advertised to cover built-in language features, but it doesn't cover data imports
No Node.js modules are directly imported here
Output:
The text was updated successfully, but these errors were encountered: