File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -206,23 +206,18 @@ The valid arguments for the `--allow-fs-read` flag are:
206206* Multiple paths can be allowed using multiple ` --allow-fs-read ` flags.
207207 Example ` --allow-fs-read=/folder1/ --allow-fs-read=/folder1/ `
208208
209- Paths delimited by comma (` , ` ) are no longer allowed.
210- When passing a single flag with a comma a warning will be displayed.
211-
212209Examples can be found in the [ File System Permissions] [ ] documentation.
213210
214- Relative paths are NOT yet supported by the CLI flag.
215-
216211The initializer module also needs to be allowed. Consider the following example:
217212
218213``` console
219- $ node --experimental-permission t .js
214+ $ node --experimental-permission index .js
220215
221216Error: Access to this API has been restricted
222217 at node:internal/main/run_main_module:23:47 {
223218 code: 'ERR_ACCESS_DENIED',
224219 permission: 'FileSystemRead',
225- resource: '/Users/rafaelgss/repos/os/node/t .js'
220+ resource: '/Users/rafaelgss/repos/os/node/index .js'
226221}
227222```
228223
@@ -258,8 +253,6 @@ When passing a single flag with a comma a warning will be displayed.
258253
259254Examples can be found in the [ File System Permissions] [ ] documentation.
260255
261- Relative paths are NOT supported through the CLI flag.
262-
263256### ` --allow-wasi `
264257
265258<!-- YAML
You can’t perform that action at this time.
0 commit comments