Skip to content

Commit

Permalink
doc: remove x86 from os.arch() options
Browse files Browse the repository at this point in the history
It is not possible for `process.arch` (which comes from V8's
`target_arch`) to be `x86`.

Also updates `process.arch` to have the same information.

PR-URL: #17899
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
gibfahn authored and MylesBorins committed Jan 9, 2018
1 parent 14499f8 commit 3fd6581
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ added: v0.5.0
* Returns: {string}

The `os.arch()` method returns a string identifying the operating system CPU
architecture *for which the Node.js binary was compiled*.
architecture for which the Node.js binary was compiled.

The current possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, `'x64'`, and
`'x86'`.
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.

Equivalent to [`process.arch`][].

Expand Down
8 changes: 5 additions & 3 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,11 @@ added: v0.5.0

* {string}

The `process.arch` property returns a String identifying the processor
architecture that the Node.js process is currently running on. For instance
`'arm'`, `'ia32'`, or `'x64'`.
The `process.arch` property returns a string identifying the operating system CPU
architecture for which the Node.js binary was compiled.

The current possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.

```js
console.log(`This processor architecture is ${process.arch}`);
Expand Down

0 comments on commit 3fd6581

Please sign in to comment.