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:
206
206
* Multiple paths can be allowed using multiple ` --allow-fs-read ` flags.
207
207
Example ` --allow-fs-read=/folder1/ --allow-fs-read=/folder1/ `
208
208
209
- Paths delimited by comma (` , ` ) are no longer allowed.
210
- When passing a single flag with a comma a warning will be displayed.
211
-
212
209
Examples can be found in the [ File System Permissions] [ ] documentation.
213
210
214
- Relative paths are NOT yet supported by the CLI flag.
215
-
216
211
The initializer module also needs to be allowed. Consider the following example:
217
212
218
213
``` console
219
- $ node --experimental-permission t .js
214
+ $ node --experimental-permission index .js
220
215
221
216
Error: Access to this API has been restricted
222
217
at node:internal/main/run_main_module:23:47 {
223
218
code: 'ERR_ACCESS_DENIED',
224
219
permission: 'FileSystemRead',
225
- resource: '/Users/rafaelgss/repos/os/node/t .js'
220
+ resource: '/Users/rafaelgss/repos/os/node/index .js'
226
221
}
227
222
```
228
223
@@ -258,8 +253,6 @@ When passing a single flag with a comma a warning will be displayed.
258
253
259
254
Examples can be found in the [ File System Permissions] [ ] documentation.
260
255
261
- Relative paths are NOT supported through the CLI flag.
262
-
263
256
### ` --allow-wasi `
264
257
265
258
<!-- YAML
You can’t perform that action at this time.
0 commit comments