diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-05-28 21:19:13 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-05-30 05:38:10 +0300 |
commit | 56e44601d285483ffe3c6efa3b80743900d84856 (patch) | |
tree | 67fb96f8126441ff615de3155ad5dd1626f1a952 /lib/internal/event_target.js | |
parent | 697bcd9e3fe14696a5bf1ff7fe271f1ce0ca021c (diff) |
events: add tests, better toString
PR-URL: https://github.com/nodejs/node/pull/33622
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/internal/event_target.js')
-rw-r--r-- | lib/internal/event_target.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/event_target.js b/lib/internal/event_target.js index 4cc561f95c0..a898a3c653f 100644 --- a/lib/internal/event_target.js +++ b/lib/internal/event_target.js @@ -282,6 +282,7 @@ class EventTarget { return `${name} ${inspect({}, opts)}`; } + get [Symbol.toStringTag]() { return 'EventTarget'; } } Object.defineProperties(EventTarget.prototype, { |