Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ When enabling the Permission Model through the [`--experimental-permission`][]
flag a new property `permission` is added to the `process` object.
This property contains one function:

##### `permission.has(scope ,parameters)`
##### `permission.has(scope[, reference])`

API call to check permissions at runtime ([`permission.has()`][])

Expand Down
4 changes: 3 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ for the current process. Additional documentation is available in the
added: v20.0.0
-->

* `scopes` {string}
* `scope` {string}
* `reference` {string}
* Returns: {boolean}

Expand All @@ -2657,6 +2657,8 @@ The available scopes are:
* `fs` - All File System
* `fs.read` - File System read operations
* `fs.write` - File System write operations
* `child` - Child process spawning operations
* `worker` - Worker thread spawning operation

```js
// Check if the process has permission to read the README file
Expand Down