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 b2432a7 as of 2017-12-17
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 88b3c71 + b2432a7 commit 9120385
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ added and `'removeListener'` when existing listeners are removed.
added: v0.1.26
-->

* `eventName` {any} The name of the event being listened for
* `eventName` {string|symbol} The name of the event being listened for
* `listener` {Function} The event handler function

The `EventEmitter` instance will emit its own `'newListener'` event *before*
Expand Down Expand Up @@ -219,7 +219,7 @@ changes:
now yields the original listener function.
-->

* `eventName` {any} The event name
* `eventName` {string|symbol} The event name
* `listener` {Function} The event handler function

The `'removeListener'` event is emitted *after* the `listener` is removed.
Expand Down Expand Up @@ -287,7 +287,7 @@ Its `name` property is set to `'MaxListenersExceededWarning'`.
<!-- YAML
added: v0.1.26
-->
- `eventName` {any}
- `eventName` {string|symbol}
- `listener` {Function}

Alias for `emitter.on(eventName, listener)`.
Expand All @@ -296,7 +296,7 @@ Alias for `emitter.on(eventName, listener)`.
<!-- YAML
added: v0.1.26
-->
- `eventName` {any}
- `eventName` {string|symbol}
- `...args` {any}

Synchronously calls each of the listeners registered for the event named
Expand Down Expand Up @@ -340,7 +340,7 @@ set by [`emitter.setMaxListeners(n)`][] or defaults to
added: v3.2.0
-->

* `eventName` {any} The name of the event being listened for
* `eventName` {string|symbol} The name of the event being listened for

Returns the number of listeners listening to the event named `eventName`.

Expand All @@ -353,7 +353,7 @@ changes:
description: For listeners attached using `.once()` this returns the
original listeners instead of wrapper functions now.
-->
- `eventName` {any}
- `eventName` {string|symbol}

Returns a copy of the array of listeners for the event named `eventName`.

Expand All @@ -370,7 +370,7 @@ console.log(util.inspect(server.listeners('connection')));
added: v0.1.101
-->

* `eventName` {any} The name of the event.
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function

Adds the `listener` function to the end of the listeners array for the
Expand Down Expand Up @@ -406,7 +406,7 @@ myEE.emit('foo');
added: v0.3.0
-->

* `eventName` {any} The name of the event.
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function

Adds a **one-time** `listener` function for the event named `eventName`. The
Expand Down Expand Up @@ -439,7 +439,7 @@ myEE.emit('foo');
added: v6.0.0
-->

* `eventName` {any} The name of the event.
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function

Adds the `listener` function to the *beginning* of the listeners array for the
Expand All @@ -461,7 +461,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
added: v6.0.0
-->

* `eventName` {any} The name of the event.
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function

Adds a **one-time** `listener` function for the event named `eventName` to the
Expand All @@ -480,7 +480,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
<!-- YAML
added: v0.1.26
-->
- `eventName` {any}
- `eventName` {string|symbol}

Removes all listeners, or those of the specified `eventName`.

Expand All @@ -494,7 +494,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
<!-- YAML
added: v0.1.26
-->
- `eventName` {any}
- `eventName` {string|symbol}
- `listener` {Function}

Removes the specified `listener` from the listener array for the event named
Expand Down Expand Up @@ -578,7 +578,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
<!-- YAML
added: REPLACEME
-->
- `eventName` {any}
- `eventName` {string|symbol}

Returns a copy of the array of listeners for the event named `eventName`,
including any wrappers (such as those created by `.once`).
Expand Down
2 changes: 1 addition & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ added: v9.3.0

* {string[]}

A list of the names of all modules provided by Node.js. Can be used to verify
A list of the names of all modules provided by Node.js. Can be used to verify
if a module is maintained by a third-party module or not.

[`__dirname`]: #modules_dirname
Expand Down

0 comments on commit 9120385

Please sign in to comment.