-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: fix mismatched arguments of NodeEventTarget
#45678
doc: fix mismatched arguments of NodeEventTarget
#45678
Conversation
Arguments of some APIs are mismatched and 2 APIs are not described.
cc @nodejs/documentation I have some questions about
|
@aduh95 I think implementation of |
/cc @nodejs/events |
#### `nodeEventTarget.setMaxListeners(n)` | ||
|
||
<!-- YAML | ||
added: v14.5.0 | ||
--> | ||
|
||
* `n` {number} | ||
|
||
Node.js-specific extension to the `EventTarget` class that sets the number | ||
of max event listeners as `n`. | ||
|
||
#### `nodeEventTarget.getMaxListeners()` | ||
|
||
<!-- YAML | ||
added: v14.5.0 | ||
--> | ||
|
||
* Returns: {number} | ||
|
||
Node.js-specific extension to the `EventTarget` class that returns the number | ||
of max event listeners. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would need to update this list as well:
Lines 1646 to 1650 in 016abb6
2. The `NodeEventTarget` does not emulate the full `EventEmitter` API. | |
Specifically the `prependListener()`, `prependOnceListener()`, | |
`rawListeners()`, `setMaxListeners()`, `getMaxListeners()`, and | |
`errorMonitor` APIs are not emulated. The `'newListener'` and | |
`'removeListener'` events will also not be emitted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated list of unsupported function in NodeEventTarget
. Thank you for comment.
NodeEventTarget
NodeEventTarget
Commit Queue failed- Loading data for nodejs/node/pull/45678 ✔ Done loading data for nodejs/node/pull/45678 ----------------------------------- PR info ------------------------------------ Title doc: fix mismatched arguments of `NodeEventTarget` (#45678) Author Deokjin Kim (@deokjinkim) Branch deokjinkim:221130_revise_nodeeventtarget_doc -> nodejs:main Labels doc Commits 2 - doc,lib: fix mismatched arguments of `NodeEventTarget` - update list of unsupported function in `NodeEventTarget` Committers 1 - Deokjin Kim PR-URL: https://github.com/nodejs/node/pull/45678 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/45678 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Tue, 29 Nov 2022 16:38:36 GMT ✔ Approvals: 2 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/45678#pullrequestreview-1213082334 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/45678#pullrequestreview-1223262811 ✔ Last GitHub CI successful ✖ No Jenkins CI runs detected -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/3952162434 |
Landed in b804399 |
Arguments of some APIs are mismatched and 2 APIs are not as described. PR-URL: #45678 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Arguments of some APIs are mismatched and 2 APIs are not as described. PR-URL: #45678 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Arguments of some APIs are mismatched and 2 APIs are not as described. PR-URL: #45678 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Arguments of some APIs are mismatched and 2 APIs are not described.