Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<!--name=vm-->

The `vm` module provides APIs for compiling and running code within V8 Virtual
Machine contexts.
Machine contexts. **Note that the `vm` module is not a security mechanism. Do
not use it to run untrusted code**. The term "sandbox" is used throughout these
docs simply to refer to a separate context, and does not confer any security
guarantees.

JavaScript code can be compiled and run immediately or
compiled, saved, and run later.
Expand Down Expand Up @@ -40,9 +43,6 @@ console.log(sandbox.y); // 17
console.log(x); // 1; y is not defined.
```

**The vm module is not a security mechanism. Do not use it to run untrusted
code**.

## Class: vm.SourceTextModule
<!-- YAML
added: v9.6.0
Expand Down