-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
vm.Script
should support timeouts
#20982
Comments
the docs are wrong in this case ( |
devsnek
added
doc
Issues and PRs related to the documentations.
vm
Issues and PRs related to the vm subsystem.
labels
May 26, 2018
That's a shame! Sure, I can send a PR for that |
SimenB
added a commit
to SimenB/node
that referenced
this issue
May 26, 2018
2 tasks
See #20984 |
MylesBorins
pushed a commit
that referenced
this issue
Jun 6, 2018
PR-URL: #20984 Fixes: #20982 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
10.2.1
Darwin Simens-MacBook-Pro.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
vm
According to the docs, you should be able to pass
timeout
when doingnew Script
. This seemingly does not work.Running the following snippet will successfully throw an error after one second:
The following will not:
I did some digging (which might not be useful at all), and to my untrained eyes it looks like
new Script
constructor ignorestimeout
argument:node/lib/vm.js
Lines 45 to 52 in 9461f32
Reported in jsdom/jsdom#2238, /cc @TimothyGu
The text was updated successfully, but these errors were encountered: