Skip to content

Commit

Permalink
doc: emphasize security warning in vm module doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Feb 9, 2022
1 parent bd86e51 commit f8c59cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<span class="critical">The `vm` module is not a security
mechanism. Do not use it to run untrusted code.</span>

JavaScript code can be compiled and run immediately or
compiled, saved, and run later.
Expand Down
5 changes: 5 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ em code {
line-height: 1.5rem;
}

.critical, .critical code {
color: var(--red1);
font-weight: 700;
}

li.version-picker {
position: relative;
}
Expand Down

0 comments on commit f8c59cc

Please sign in to comment.