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 @@ -412,15 +412,6 @@ ObjectDefineProperties(CustomEvent.prototype, {
412
412
detail : kEnumerableProperty ,
413
413
} ) ;
414
414
415
- class NodeCustomEvent extends Event {
416
- constructor ( type , options ) {
417
- super ( type , options ) ;
418
- if ( options ?. detail ) {
419
- this . detail = options . detail ;
420
- }
421
- }
422
- }
423
-
424
415
// Weak listener cleanup
425
416
// This has to be lazy for snapshots to work
426
417
let weakListenersState = null ;
@@ -841,7 +832,7 @@ class EventTarget {
841
832
}
842
833
843
834
[ kCreateEvent ] ( nodeValue , type ) {
844
- return new NodeCustomEvent ( type , { detail : nodeValue } ) ;
835
+ return new CustomEvent ( type , { detail : nodeValue } ) ;
845
836
}
846
837
[ customInspectSymbol ] ( depth , options ) {
847
838
if ( ! isEventTarget ( this ) )
You can’t perform that action at this time.
0 commit comments