File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
<!-- name=vm-->
8
8
9
9
The ` vm ` module provides APIs for compiling and running code within V8 Virtual
10
- Machine contexts.
10
+ Machine contexts. ** Note that the ` vm ` module is not a security mechanism. Do
11
+ not use it to run untrusted code** . The term "sandbox" is used throughout these
12
+ docs simply to refer to a separate context, and does not confer any security
13
+ guarantees.
11
14
12
15
JavaScript code can be compiled and run immediately or
13
16
compiled, saved, and run later.
@@ -40,9 +43,6 @@ console.log(sandbox.y); // 17
40
43
console .log (x); // 1; y is not defined.
41
44
```
42
45
43
- ** The vm module is not a security mechanism. Do not use it to run untrusted
44
- code** .
45
-
46
46
## Class: vm.SourceTextModule
47
47
<!-- YAML
48
48
added: v9.6.0
You can’t perform that action at this time.
0 commit comments