File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -408,15 +408,6 @@ ObjectDefineProperties(CustomEvent.prototype, {
408408 detail : kEnumerableProperty ,
409409} ) ;
410410
411- class NodeCustomEvent extends Event {
412- constructor ( type , options ) {
413- super ( type , options ) ;
414- if ( options ?. detail ) {
415- this . detail = options . detail ;
416- }
417- }
418- }
419-
420411// Weak listener cleanup
421412// This has to be lazy for snapshots to work
422413let weakListenersState = null ;
@@ -837,7 +828,7 @@ class EventTarget {
837828 }
838829
839830 [ kCreateEvent ] ( nodeValue , type ) {
840- return new NodeCustomEvent ( type , { detail : nodeValue } ) ;
831+ return new CustomEvent ( type , { detail : nodeValue } ) ;
841832 }
842833 [ customInspectSymbol ] ( depth , options ) {
843834 if ( ! isEventTarget ( this ) )
You can’t perform that action at this time.
0 commit comments