domain: add name to monkey-patched emit function · nodejs/node@bd38dfb · GitHub
Skip to content

Commit bd38dfb

Browse files
cjihrigtargos
authored andcommitted
domain: add name to monkey-patched emit function
The domain module monkey patches EventEmitter.prototype.emit(), however the function's name was becoming the empty string. This commit forces the new emit function to have the proper name. PR-URL: #37550 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 13d972d commit bd38dfb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/domain.js

Lines changed: 1 addition & 1 deletion

test/parallel/test-domain-dep0097.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)