-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: change ContextifyScript to Script in comment #8415
Conversation
Reading the comment at the top of the vm.js, I think that ContextifyScript should perhaps just be Script.
LGTM |
@@ -4,7 +4,7 @@ const binding = process.binding('contextify'); | |||
const Script = binding.ContextifyScript; | |||
|
|||
// The binding provides a few useful primitives: | |||
// - ContextifyScript(code, { filename = "evalmachine.anonymous", | |||
// - Script(code, { filename = "evalmachine.anonymous", | |||
// displayErrors = true } = {}) |
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.
Nit: I think this line was aligned with the previous line's filename
.
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.
Yep, need to reduce the indentation
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.
Ah thanks, I'll fix that.
LGTM |
3 similar comments
LGTM |
LGTM |
LGTM |
Reading the comment at the top of the vm.js, I think that ContextifyScript should perhaps just be Script. PR-URL: #8415 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franzih@chromium.org> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in da0651a |
@fhinkel Thanks for merging this! |
Sure. Thanks for contributing! |
Reading the comment at the top of the vm.js, I think that ContextifyScript should perhaps just be Script. PR-URL: #8415 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franzih@chromium.org> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
should this be backported to v4? |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
vm
Description of change
Reading the comment at the top of the vm.js, I think that
ContextifyScript
should perhaps just beScript
.