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