From 18981b0026b45cc2d123d0179969b60802e274bf Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Fri, 17 May 2024 12:02:45 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Rich Trott --- doc/api/cli.md | 2 +- doc/api/permissions.md | 4 ++-- doc/node.1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index bd0ba447674dd5..6b9e21d30e76f7 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -280,7 +280,7 @@ added: REPLACEME When using the [Permission Model][], the process will not be able to create any WASI instances by default. For security reasons, the call will throw an `ERR_ACCESS_DENIED` unless the -user explicitly pass the flag `--allow-wasi` in the main Node.js process. +user explicitly passes the flag `--allow-wasi` in the main Node.js process. Example: diff --git a/doc/api/permissions.md b/doc/api/permissions.md index ac3d7283e4ed2e..e11bfe78315200 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -482,7 +482,7 @@ flag. When starting Node.js with `--experimental-permission`, the ability to access the file system through the `fs` module, spawn processes, -use `node:worker_threads`, native addons, WASI, and enable the runtime inspector +use `node:worker_threads`, use native addons, use WASI, and enable the runtime inspector will be restricted. ```console @@ -507,7 +507,7 @@ Allowing access to spawning a process and creating worker threads can be done using the [`--allow-child-process`][] and [`--allow-worker`][] respectively. To allow native addons when using permission model, use the [`--allow-addons`][] -flag. For WASI, use the [`--allow-wasi`][] +flag. For WASI, use the [`--allow-wasi`][] flag. #### Runtime API diff --git a/doc/node.1 b/doc/node.1 index eede0c7815992b..230585fbd95152 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -89,7 +89,7 @@ Allow using native addons when using the permission model. Allow spawning process when using the permission model. . .It Fl -allow-wasi -Allow creating WASI when using the permission model. +Allow execution of WASI when using the permission model. . .It Fl -allow-worker Allow creating worker threads when using the permission model.