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 @@ -208,23 +208,18 @@ The valid arguments for the `--allow-fs-read` flag are:
208208* Multiple paths can be allowed using multiple ` --allow-fs-read ` flags.
209209 Example ` --allow-fs-read=/folder1/ --allow-fs-read=/folder1/ `
210210
211- Paths delimited by comma (` , ` ) are no longer allowed.
212- When passing a single flag with a comma a warning will be displayed.
213-
214211Examples can be found in the [ File System Permissions] [ ] documentation.
215212
216- Relative paths are NOT yet supported by the CLI flag.
217-
218213The initializer module also needs to be allowed. Consider the following example:
219214
220215``` console
221- $ node --experimental-permission t .js
216+ $ node --experimental-permission index .js
222217
223218Error: Access to this API has been restricted
224219 at node:internal/main/run_main_module:23:47 {
225220 code: 'ERR_ACCESS_DENIED',
226221 permission: 'FileSystemRead',
227- resource: '/Users/rafaelgss/repos/os/node/t .js'
222+ resource: '/Users/rafaelgss/repos/os/node/index .js'
228223}
229224```
230225
@@ -260,8 +255,6 @@ When passing a single flag with a comma a warning will be displayed.
260255
261256Examples can be found in the [ File System Permissions] [ ] documentation.
262257
263- Relative paths are NOT supported through the CLI flag.
264-
265258### ` --allow-wasi `
266259
267260<!-- YAML
You can’t perform that action at this time.
0 commit comments