diff --git a/doc/api/vm.md b/doc/api/vm.md index 80a4760b6dd947..6259b9b2ffd3f5 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -7,7 +7,10 @@ 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. @@ -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