We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
node v22.11.0 npm 10.9.0
Linux u24vm 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
a. npm init -y b. npm shrinkwrap c. npm install --save big-rat d. npm audit fix
the final package.json is as follows:
{ "name": "package-7a18f42fc351679bd22de3b2940e74e5", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "", "dependencies": { "big-rat": "^1.0.4" } }
node
(async function() { var lib = await import('big-rat'); var result = lib.default(NaN, 1);; })();
Then the node instance will hang and no response returned.
This issue can always be triggered following the steps above.
No matter return a NaN or throw an exception, or take any other response. At least avoiding a DoS result.
» node Welcome to Node.js v22.11.0. Type ".help" for more information.
(async function() { ... var lib = await import('big-rat'); ... var result = lib.default(NaN, 1);; ... })(); Promise { , [Symbol(async_id_symbol)]: 28, [Symbol(trigger_async_id_symbol)]: 6 } (the node server hanged here.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
node v22.11.0
npm 10.9.0
Platform
What steps will reproduce the bug?
the final package.json is as follows:
Then the node instance will hang and no response returned.
How often does it reproduce? Is there a required condition?
This issue can always be triggered following the steps above.
What is the expected behavior? Why is that the expected behavior?
No matter return a NaN or throw an exception, or take any other response. At least avoiding a DoS result.
What do you see instead?
» node
Welcome to Node.js v22.11.0.
Type ".help" for more information.
The text was updated successfully, but these errors were encountered: