From dca2692ae3463370bb897ea6b925031cbb64f446 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 12 Feb 2022 09:09:13 -0800 Subject: [PATCH] doc: emphasize security warning in vm module doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/40718 PR-URL: https://github.com/nodejs/node/pull/41916 Reviewed-By: Gus Caplan Reviewed-By: Tobias Nießen Reviewed-By: Beth Griggs Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Mestery Reviewed-By: Derek Lewis Reviewed-By: James M Snell --- doc/api/vm.md | 6 ++++-- doc/api_assets/style.css | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index efc677967d7785..ae7ed3c14a1284 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -9,8 +9,10 @@ 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. + +The `vm` module is not a security +mechanism. Do not use it to run untrusted code. JavaScript code can be compiled and run immediately or compiled, saved, and run later. diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 8b209ec0b59c6e..9ae45a09c84ca8 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -11,6 +11,7 @@ --red1: #d60027; --red2: #d50027; --red3: #ca5010; + --red4: #ff7070; --green1: #3e7a38; --green2: #5a8147; --green3: #64de64; @@ -29,6 +30,7 @@ --background-color-highlight: var(--white-smoke); --color-brand-primary: var(--gray6); --color-brand-secondary: var(--green1); + --color-critical: var(--red1); --color-fill-app: var(--white); --color-fill-side-nav: var(--gray6); --color-links: var(--green1); @@ -40,6 +42,7 @@ .dark-mode { --background-color-highlight: var(--black2); + --color-critical: var(--red4); --color-fill-app: var(--black1); --color-fill-side-nav: var(--black3); --color-links: var(--green5); @@ -165,6 +168,10 @@ em code { line-height: 1.5rem; } +.critical, .critical code { + color: var(--color-critical); +} + li.version-picker { position: relative; }