[v12.x] events: assume an EventEmitter if emitter.on is a function by lpinca · Pull Request #35818 · nodejs/node
added
events
v12.x labels
Oct 26, 2020
lpinca
changed the title
events: assume an EventEmitter if emitter.on is a function
[v12.x] events: assume an EventEmitter if emitter.on is a function
MylesBorins pushed a commit that referenced this pull request
Nov 16, 2020Assume that the `emitter` argument of `EventEmitter.once()` is an `EventEmitter` if `emitter.on` is a function. Refs: 4b3654e923e7c3c2 Refs: websockets/ws#1795 PR-URL: #35818 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
lpinca
deleted the
fix/events-once
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters