Skip to content

Commit

Permalink
doc: fix misleading language in vm docs
Browse files Browse the repository at this point in the history
The note following the http.Server example in the vm documentation
contains misleading language. This commit removes the incorrect
reference to threads.

Fixes: #10697
PR-URL: #10708
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
aqrln authored and MylesBorins committed Mar 9, 2017
1 parent 8e807f6 commit 494ee51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/vm.md
Expand Up @@ -439,9 +439,9 @@ let code =
vm.runInThisContext(code)(require);
```

*Note*: The `require()` in the above case shares the state with context it 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.
*Note*: The `require()` in the above case shares the state with the context it
is passed from. This may introduce risks when untrusted code is executed, e.g.
altering objects in the context in unwanted ways.

## What does it mean to "contextify" an object?

Expand Down

0 comments on commit 494ee51

Please sign in to comment.