Skip to content

Commit d3edbd1

Browse files
committed
events: remove eventtarget custom inspect branding
1 parent 4e1f39b commit d3edbd1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/internal/event_target.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,6 @@ class EventTarget {
867867
return new CustomEvent(type, { detail: nodeValue });
868868
}
869869
[customInspectSymbol](depth, options) {
870-
if (!isEventTarget(this))
871-
throw new ERR_INVALID_THIS('EventTarget');
872870
const name = this.constructor.name;
873871
if (depth < 0)
874872
return name;

0 commit comments

Comments
 (0)