Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
meta: merge node/master into node-chakracore/master
Browse files Browse the repository at this point in the history
Merge 04ae486 as of 2017-12-13
This commit was automatically generated. For any problems, please contact jackhorton

Reviewed-By: Taylor Woll <tawoll@ntdev.microsoft.com>
  • Loading branch information
chakrabot committed Jan 18, 2018
2 parents 7714b4d + 04ae486 commit 78e8680
Show file tree
Hide file tree
Showing 54 changed files with 1,029 additions and 291 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V9.md#9.2.1">9.2.1</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V9.md#9.3.0">9.3.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.2.1">9.2.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.2.0">9.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.1.0">9.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.0.0">9.0.0</a><br/>
Expand Down
4 changes: 2 additions & 2 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ undefined
<!-- YAML
added: v8.0.0
changes:
- version: REPLACEME
- version: 9.3.0
pr-url: https://github.com/nodejs/node/pull/17033
description: "`console.debug` is now an alias for `console.log`."
-->
Expand Down Expand Up @@ -280,7 +280,7 @@ Defaults to `false`. Colors are customizable; see
<!-- YAML
added: v8.0.0
changes:
- version: REPLACEME
- version: 9.3.0
pr-url: https://github.com/nodejs/node/pull/17152
description: "`console.dirxml` now calls `console.log` for its arguments."
-->
Expand Down
17 changes: 11 additions & 6 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ higher the number of iterations, the more secure the derived key will be,
but will take a longer amount of time to complete.

The `salt` should also be as unique as possible. It is recommended that the
salts are random and their lengths are greater than 16 bytes. See
salts are random and their lengths are at least 16 bytes. See
[NIST SP 800-132][] for details.

Example:
Expand Down Expand Up @@ -1686,7 +1686,7 @@ higher the number of iterations, the more secure the derived key will be,
but will take a longer amount of time to complete.

The `salt` should also be as unique as possible. It is recommended that the
salts are random and their lengths are greater than 16 bytes. See
salts are random and their lengths are at least 16 bytes. See
[NIST SP 800-132][] for details.

Example:
Expand Down Expand Up @@ -1792,6 +1792,11 @@ be passed instead of a public key.
### crypto.randomBytes(size[, callback])
<!-- YAML
added: v0.5.8
changes:
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/16454
description: Passing `null` as the `callback` argument now throws
`ERR_INVALID_CALLBACK`.
-->
- `size` {number}
- `callback` {Function}
Expand Down Expand Up @@ -1847,10 +1852,10 @@ added: v7.10.0
changes:
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/15231
description: The `buffer` argument may be any ArrayBufferView
description: The `buffer` argument may be any `TypedArray` or `DataView`.
-->

* `buffer` {Buffer|Uint8Array|ArrayBufferView} Must be supplied.
* `buffer` {Buffer|TypedArray|DataView} Must be supplied.
* `offset` {number} Defaults to `0`.
* `size` {number} Defaults to `buffer.length - offset`.

Expand Down Expand Up @@ -1889,10 +1894,10 @@ added: v7.10.0
changes:
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/15231
description: The `buffer` argument may be any ArrayBufferView
description: The `buffer` argument may be any `TypedArray` or `DataView`.
-->

* `buffer` {Buffer|Uint8Array|ArrayBufferView} Must be supplied.
* `buffer` {Buffer|TypedArray|DataView} Must be supplied.
* `offset` {number} Defaults to `0`.
* `size` {number} Defaults to `buffer.length - offset`.
* `callback` {Function} `function(err, buf) {}`.
Expand Down
7 changes: 3 additions & 4 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ node --experimental-modules my-app.mjs
### Supported

Only the CLI argument for the main entry point to the program can be an entry
point into an ESM graph. In the future `import()` can be used to create entry
points into ESM graphs at run time.
point into an ESM graph. Dynamic import can also be used with the flag
`--harmony-dynamic-import` to create entry points into ESM graphs at run time.

### Unsupported

| Feature | Reason |
| --- | --- |
| `require('./foo.mjs')` | ES Modules have differing resolution and timing, use language standard `import()` |
| `import()` | pending newer V8 release used in Node.js |
| `require('./foo.mjs')` | ES Modules have differing resolution and timing, use dynamic import |
| `import.meta` | pending V8 implementation |

## Notable differences between `import` and `require`
Expand Down
4 changes: 2 additions & 2 deletions doc/api/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ Global instance of [`https.Agent`][] for all HTTPS client requests.
<!-- YAML
added: v0.3.6
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/6569
- version: v9.3.0
pr-url: https://github.com/nodejs/node/pull/14903
description: The `options` parameter can now include `clientCertEngine`.
- version: v7.5.0
pr-url: https://github.com/nodejs/node/pull/10638
Expand Down
2 changes: 1 addition & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ via `require('module')`.

### module.builtinModules
<!-- YAML
added: REPLACEME
added: v9.3.0
-->

* {string[]}
Expand Down
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3695,7 +3695,7 @@ a specific `napi_env`.

### napi_get_uv_event_loop
<!-- YAML
added: REPLACEME
added: v9.3.0
-->
```C
NAPI_EXTERN napi_status napi_get_uv_event_loop(napi_env env,
Expand Down
4 changes: 2 additions & 2 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ or Android).

## process.hasUncaughtExceptionCaptureCallback()
<!-- YAML
added: REPLACEME
added: v9.3.0
-->

* Returns: {boolean}
Expand Down Expand Up @@ -1647,7 +1647,7 @@ or Android).

## process.setUncaughtExceptionCaptureCallback(fn)
<!-- YAML
added: REPLACEME
added: v9.3.0
-->

* `fn` {Function|null}
Expand Down
4 changes: 2 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ See also: [`writable.cork()`][].

##### writable.writableHighWaterMark
<!-- YAML
added: REPLACEME
added: v9.3.0
-->

Return the value of `highWaterMark` passed when constructing this
Expand Down Expand Up @@ -889,7 +889,7 @@ options.

##### readable.readableHighWaterMark
<!-- YAML
added: REPLACEME
added: v9.3.0
-->

Return the value of `highWaterMark` passed when constructing this
Expand Down
8 changes: 4 additions & 4 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,8 @@ port or host argument.
<!-- YAML
added: v0.11.13
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/6569
- version: v9.3.0
pr-url: https://github.com/nodejs/node/pull/14903
description: The `options` parameter can now include `clientCertEngine`.
- version: v7.3.0
pr-url: https://github.com/nodejs/node/pull/10294
Expand Down Expand Up @@ -1076,8 +1076,8 @@ publicly trusted list of CAs as given in
<!-- YAML
added: v0.3.2
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/6569
- version: v9.3.0
pr-url: https://github.com/nodejs/node/pull/14903
description: The `options` parameter can now include `clientCertEngine`.
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/11984
Expand Down
13 changes: 9 additions & 4 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,9 @@ changes:
line. Defaults to 60 for legacy compatibility.

The `util.inspect()` method returns a string representation of `object` that is
primarily useful for debugging. Additional `options` may be passed that alter
certain aspects of the formatted string.
intended for debugging. The output of `util.inspect` may change at any time
and should not be depended upon programmatically. Additional `options` may be
passed that alter certain aspects of the formatted string.
`util.inspect()` will use the constructor's name and/or `@@toStringTag` to make an
identifiable tag for an inspected value.

Expand Down Expand Up @@ -552,8 +553,10 @@ If there is an `original[util.promisify.custom]` property present, `promisify`
will return its value, see [Custom promisified functions][].

`promisify()` assumes that `original` is a function taking a callback as its
final argument in all cases, and the returned function will result in undefined
behavior if it does not.
final argument in all cases. If `original` is not a function, `promisify()`
will throw an error. If `original` is a function but its last argument is not a
Node.js style callback, it will still be passed a Node.js style callback
as its last argument.

### Custom promisified functions

Expand Down Expand Up @@ -588,6 +591,8 @@ doSomething[util.promisify.custom] = (foo) => {
});
};
```
If `promisify.custom` is defined but is not a function, `promisify()` will
throw an error.

### util.promisify.custom
<!-- YAML
Expand Down
Loading

0 comments on commit 78e8680

Please sign in to comment.