fix: make certain values on process read-only (#15628)

* docs: Add 'worker' as a possible value for `process.type`

* fix: make certain properties on `process` read only:

* `mas`
* `windowsStore`
* `versions.electron`
* `versions.chrome`
* `type`
* `pid`
* `sandboxed`
This commit is contained in:
Michelle Tilley 2018-11-08 06:28:06 -08:00 committed by John Kleinschmidt
parent 4e53019b75
commit 2a8e8a0603
4 changed files with 11 additions and 12 deletions

View file

@ -103,7 +103,7 @@ A `Boolean` that controls whether or not process warnings printed to `stderr` in
### `process.type`
A `String` representing the current process's type, can be `"browser"` (i.e. main process) or `"renderer"`.
A `String` representing the current process's type, can be `"browser"` (i.e. main process), `"renderer"`, or `"worker"` (i.e. web worker).
### `process.versions.chrome`