diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2020-10-26 16:36:05 +0100 |
---|---|---|
committer | Myles Borins <mylesborins@github.com> | 2020-11-16 11:58:06 -0500 |
commit | b48473228c3c96933875bc1567c4ecb8b0b10c16 (patch) | |
tree | 97dbad8f4bad9bed5ccd46187134f0de3e042dcb /common.gypi | |
parent | c6eb0b62d9d062aa63383cc44dcf58534304db46 (diff) | |
download | node-new-b48473228c3c96933875bc1567c4ecb8b0b10c16.tar.gz |
events: assume an EventEmitter if emitter.on is a function
Assume that the `emitter` argument of `EventEmitter.once()` is an
`EventEmitter` if `emitter.on` is a function.
Refs: https://github.com/nodejs/node/commit/4b3654e923e7c3c2
Refs: https://github.com/websockets/ws/issues/1795
PR-URL: https://github.com/nodejs/node/pull/35818
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'common.gypi')
0 files changed, 0 insertions, 0 deletions