-
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
doc: general improvements to vm.md copy #6827
Conversation
@@ -4,7 +4,8 @@ | |||
|
|||
<!--name=vm--> | |||
|
|||
You can access this module with: | |||
The `vm` module provides an API for compiling and running code within V8 |
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.
an API? It should have been APIs right?
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.
Either works but will switch it to the plural form, sounds better.
Thank you all for the quick review. I absolutely love it that I can open a draft like this and open my inbox in the morning and find comments on it already :-) |
Updated! PTAL |
|
||
When using either `script.runInThisContext()` or `vm.runInThisContext()`, the | ||
code is executed within the current V8 global context. The code passed | ||
to this VM context will have it's own isolated scope. |
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.
its
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.
grr... my dang muscle memory on typing that stupid ' every time I want to type its
it's freaking annoying...
Suggestion: replace "any stack traces produced from this script" with "stack traced produced by this script", it's a little more succinct. LGTM (with grammar nit) either way, though. |
Updated to address the nits. Thank you for the review! |
General improvements to vm module documentation
General improvements to vm module documentation PR-URL: #6827 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Landed in baeed8b |
General improvements to vm module documentation PR-URL: #6827 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
General improvements to vm module documentation PR-URL: #6827 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Checklist
Affected core subsystem(s)
doc (vm)
Description of change
General improvements to vm module documentation
/cc @nodejs/documentation @bnoordhuis