2020-05-05, Version 14.2.0 (Current)

Notable changes:

* Track function calls with `assert.CallTracker` (experimental).
  https://github.com/nodejs/node/pull/31982
* Added a `groupIndentation` option to the `Console` constructor.
  https://github.com/nodejs/node/pull/32964

PR-URL: https://github.com/nodejs/node/pull/33232
This commit is contained in:
Michaël Zasso committed 2020-05-05 20:24:37 +02:00
1 parent 1ffd182264
commit f446b2058d
4 files changed
+172 -7

No files matched your search

+5 -5
View File
@@ -151,7 +151,7 @@ try {
## Class: `assert.CallTracker`
<!-- YAML
added: REPLACEME
added: v14.2.0
-->
> Stability: 1 - Experimental
@@ -160,7 +160,7 @@ This feature is currently experimental and behavior might still change.
### `new assert.CallTracker()`
<!-- YAML
added: REPLACEME
added: v14.2.0
-->
Creates a new [`CallTracker`][] object which can be used to track if functions
@@ -189,7 +189,7 @@ process.on('exit', () => {
### `tracker.calls([fn][, exact])`
<!-- YAML
added: REPLACEME
added: v14.2.0
-->
* `fn` {Function} **Default** A no-op function.
@@ -216,7 +216,7 @@ const callsfunc = tracker.calls(func);
### `tracker.report()`
<!-- YAML
added: REPLACEME
added: v14.2.0
-->
* Returns: {Array} of objects containing information about the wrapper functions
@@ -262,7 +262,7 @@ tracker.report();
### `tracker.verify()`
<!-- YAML
added: REPLACEME
added: v14.2.0
-->
Iterates through the list of functions passed to
+1 -1
View File
@@ -81,7 +81,7 @@ const { Console } = console;
### `new Console(options)`
<!-- YAML
changes:
- version: REPLACEME
- version: v14.2.0
pr-url: https://github.com/nodejs/node/pull/32964
description: The `groupIndentation` option was introduced.
- version: v11.7.0