diff options
author | Rich Trott <rtrott@gmail.com> | 2022-02-12 20:09:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 20:09:13 +0300 |
commit | 86fba23b1f7524889205a1c02e8f9010ad61998e (patch) | |
tree | c847c14b8135eec54c8637a391acee8d9d790c09 /doc/api/vm.md | |
parent | 30c742fe12fdd9aeeeb03b3bd259658b7a4d5cd9 (diff) |
doc: emphasize security warning in vm module doc
Refs: https://github.com/nodejs/node/issues/40718
PR-URL: https://github.com/nodejs/node/pull/41916
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r-- | doc/api/vm.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md index 6e7e60152c9..cbb16c602ee 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -9,8 +9,10 @@ <!-- source_link=lib/vm.js --> The `vm` module enables compiling and running code within V8 Virtual -Machine contexts. **The `vm` module is not a security mechanism. Do -not use it to run untrusted code.** +Machine contexts. + +<strong class="critical">The `vm` module is not a security +mechanism. Do not use it to run untrusted code.</strong> JavaScript code can be compiled and run immediately or compiled, saved, and run later. |