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 @@ -366,15 +366,6 @@ ObjectDefineProperties(CustomEvent.prototype, {
366
366
detail : kEnumerableProperty ,
367
367
} ) ;
368
368
369
- class NodeCustomEvent extends Event {
370
- constructor ( type , options ) {
371
- super ( type , options ) ;
372
- if ( options ?. detail ) {
373
- this . detail = options . detail ;
374
- }
375
- }
376
- }
377
-
378
369
// Weak listener cleanup
379
370
// This has to be lazy for snapshots to work
380
371
let weakListenersState = null ;
@@ -705,7 +696,7 @@ class EventTarget {
705
696
}
706
697
707
698
[ kCreateEvent ] ( nodeValue , type ) {
708
- return new NodeCustomEvent ( type , { detail : nodeValue } ) ;
699
+ return new CustomEvent ( type , { detail : nodeValue } ) ;
709
700
}
710
701
[ customInspectSymbol ] ( depth , options ) {
711
702
if ( ! isEventTarget ( this ) )
You can’t perform that action at this time.
0 commit comments