doc: add note that vm module is not a security mechanism

the text added in this commit should warn users about
wrong idea that vm module can be secure to run unsafe scripts
in sandboxes

PR-URL: https://github.com/nodejs/node/pull/11557
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Ruslan Bekenev 2017-02-25 23:11:50 +03:00 коммит произвёл James M Snell
Родитель 989713d343
Коммит 2e74b0da8f
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -14,6 +14,9 @@ const vm = require('vm');
JavaScript code can be compiled and run immediately or compiled, saved, and run
later.
*Note*: The vm module is not a security mechanism.
**Do not use it to run untrusted code**.
## Class: vm.Script
<!-- YAML
added: v0.3.1