File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ const {
54
54
NODE_PERFORMANCE_MILESTONE_ENVIRONMENT
55
55
} = constants ;
56
56
57
+ const {
58
+ EventTarget,
59
+ } = require ( 'internal/event_target' ) ;
57
60
const L = require ( 'internal/linkedlist' ) ;
58
61
const kInspect = require ( 'internal/util' ) . customInspectSymbol ;
59
62
@@ -418,8 +421,9 @@ class PerformanceObserver {
418
421
}
419
422
}
420
423
421
- class Performance {
424
+ class Performance extends EventTarget {
422
425
constructor ( ) {
426
+ super ( ) ;
423
427
this [ kIndex ] = {
424
428
[ kMarks ] : new SafeSet ( )
425
429
} ;
Original file line number Diff line number Diff line change 1
1
{
2
- "basic.any.js" : {
3
- "fail" : " self.performance.addEventListener is not a function"
4
- },
5
2
"idlharness.any.js" : {
6
3
"skip" : " TODO: update IDL parser"
7
4
},
You can’t perform that action at this time.
0 commit comments