We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33f446 commit e60bd1aCopy full SHA for e60bd1a
lib/perf_hooks.js
@@ -54,6 +54,9 @@ const {
54
NODE_PERFORMANCE_MILESTONE_ENVIRONMENT
55
} = constants;
56
57
+const {
58
+ EventTarget,
59
+} = require('internal/event_target');
60
const L = require('internal/linkedlist');
61
const kInspect = require('internal/util').customInspectSymbol;
62
@@ -418,8 +421,9 @@ class PerformanceObserver {
418
421
}
419
422
420
423
-class Performance {
424
+class Performance extends EventTarget {
425
constructor() {
426
+ super();
427
this[kIndex] = {
428
[kMarks]: new SafeSet()
429
};
test/wpt/status/hr-time.json
@@ -1,7 +1,4 @@
1
{
2
- "basic.any.js": {
3
- "fail": "self.performance.addEventListener is not a function"
4
- },
5
"idlharness.any.js": {
6
"skip": "TODO: update IDL parser"
7
},
0 commit comments