@@ -208,17 +208,12 @@ 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
node:internal/modules/cjs/loader:162
223
218
const result = internalModuleStat(receiver, filename);
224
219
^
@@ -231,7 +226,7 @@ Error: Access to this API has been restricted
231
226
at node:internal/main/run_main_module:23:47 {
232
227
code: 'ERR_ACCESS_DENIED',
233
228
permission: 'FileSystemRead',
234
- resource: '/Users/rafaelgss/repos/os/node/t .js'
229
+ resource: '/Users/rafaelgss/repos/os/node/index .js'
235
230
}
236
231
```
237
232
@@ -267,8 +262,6 @@ When passing a single flag with a comma a warning will be displayed.
267
262
268
263
Examples can be found in the [ File System Permissions] [ ] documentation.
269
264
270
- Relative paths are NOT supported through the CLI flag.
271
-
272
265
### ` --allow-wasi `
273
266
274
267
<!-- YAML
0 commit comments