Skip to content

Commit 4bda875

Browse files
committedJan 11, 2017
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: nodejs#10697
1 parent 8a12368 commit 4bda875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎doc/api/vm.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ let code =
439439
vm.runInThisContext(code)(require);
440440
```
441441

442-
*Note*: The `require()` in the above case shares the state with context it is
443-
passed from. This may introduce risks when untrusted code is executed, e.g.
444-
altering objects from the calling thread's context in unwanted ways.
442+
*Note*: The `require()` in the above case shares the state with the context it
443+
is passed from. This may introduce risks when untrusted code is executed, e.g.
444+
altering objects in the context in unwanted ways.
445445

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

0 commit comments

Comments
 (0)
Please sign in to comment.