Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b73a85

Browse filesBrowse files
aqrlnItalo A. Casas
authored andcommitted
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: #10697 PR-URL: #10708 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 56ea7eb commit 9b73a85
Copy full SHA for 9b73a85

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/vm.md‎

Copy file name to clipboardExpand all lines: doc/api/vm.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.