We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da6f62 commit ed01b38Copy full SHA for ed01b38
doc/api/vm.md
@@ -7,7 +7,10 @@
7
<!--name=vm-->
8
9
The `vm` module provides APIs for compiling and running code within V8 Virtual
10
-Machine contexts.
+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.
14
15
JavaScript code can be compiled and run immediately or
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
-**The vm module is not a security mechanism. Do not use it to run untrusted
-code**.
-
46
## Class: vm.SourceTextModule
47
<!-- YAML
48
added: v9.6.0
0 commit comments