-
Notifications
You must be signed in to change notification settings - Fork 30k
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
src: explain implementation of vm module #16962
Conversation
src/node_contextify.cc
Outdated
@@ -64,8 +64,29 @@ using v8::UnboundScript; | |||
using v8::Value; | |||
using v8::WeakCallbackInfo; | |||
|
|||
// The vm module exectues code in a sandboxed environment with a different |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exectues -> executes
src/node_contextify.cc
Outdated
@@ -64,8 +64,29 @@ using v8::UnboundScript; | |||
using v8::Value; | |||
using v8::WeakCallbackInfo; | |||
|
|||
// The vm module exectues code in a sandboxed environment with a different | |||
// global object than the rest of the code. This is archieved by applying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
archieved -> achieved
09a86fc
to
43a1bb2
Compare
The vm module uses interceptors on the object template. This is not straight forward and a comment in the source will help the next person working on this.
43a1bb2
to
4982514
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this shouldn't need to wait 48 hours to land.
Since this is only adding a comment, just going to lint: https://ci.nodejs.org/job/node-test-linter/13499/ |
The vm module uses interceptors on the object template. This is not straight forward and a comment in the source will help the next person working on this. PR-URL: #16962 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Landed in f0c674d |
The vm module uses interceptors on the object template. This is not straight forward and a comment in the source will help the next person working on this. PR-URL: #16962 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Should this be backported to |
The vm module uses interceptors on the object template. This is not
straight forward and a comment in the source will help the next
person (and future me) working on this.
Checklist
make lint
passesAffected core subsystem(s)
src - but only adding a comment