Browse Source

doc: fix misleading language in vm docs

The note following the http.Server example in the vm documentation
contains misleading language. This commit removes the incorrect
reference to threads.

Fixes: https://github.com/nodejs/node/issues/10697
PR-URL: https://github.com/nodejs/node/pull/10708
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Alexey Orlenko 8 years ago
committed by Myles Borins
parent
commit
494ee5163f
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 6
      doc/api/vm.md

6
doc/api/vm.md

@ -439,9 +439,9 @@ let code =
vm.runInThisContext(code)(require); vm.runInThisContext(code)(require);
``` ```
*Note*: The `require()` in the above case shares the state with context it is *Note*: The `require()` in the above case shares the state with the context it
passed from. This may introduce risks when untrusted code is executed, e.g. is passed from. This may introduce risks when untrusted code is executed, e.g.
altering objects from the calling thread's context in unwanted ways. altering objects in the context in unwanted ways.
## What does it mean to "contextify" an object? ## What does it mean to "contextify" an object?

Loading…
Cancel
Save