@@ -206,20 +206,12 @@ 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
220
- node:internal/modules/cjs/loader:162
221
- const result = internalModuleStat(filename);
222
- ^
214
+ $ node --experimental-permission index.js
223
215
224
216
Error: Access to this API has been restricted
225
217
at stat (node:internal/modules/cjs/loader:162:18)
@@ -229,7 +221,7 @@ Error: Access to this API has been restricted
229
221
at node:internal/main/run_main_module:23:47 {
230
222
code: 'ERR_ACCESS_DENIED',
231
223
permission: 'FileSystemRead',
232
- resource: '/Users/rafaelgss/repos/os/node/t .js'
224
+ resource: '/Users/rafaelgss/repos/os/node/index .js'
233
225
}
234
226
```
235
227
@@ -265,8 +257,6 @@ When passing a single flag with a comma a warning will be displayed.
265
257
266
258
Examples can be found in the [ File System Permissions] [ ] documentation.
267
259
268
- Relative paths are NOT supported through the CLI flag.
269
-
270
260
### ` --allow-wasi `
271
261
272
262
<!-- YAML
0 commit comments