We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class ... extends
1 parent d2ba454 commit 75c6281Copy full SHA for 75c6281
lib/perf_hooks.js
@@ -149,7 +149,7 @@ function getMilestoneTimestamp(milestoneIdx) {
149
return ns / 1e6 - timeOrigin;
150
}
151
152
-class PerformanceNodeTiming {
+class PerformanceNodeTiming extends PerformanceEntry {
153
get name() {
154
return 'node';
155
@@ -213,9 +213,6 @@ class PerformanceNodeTiming {
213
};
214
215
216
-Object.setPrototypeOf(
217
- PerformanceNodeTiming.prototype, PerformanceEntry.prototype);
218
-Object.setPrototypeOf(PerformanceNodeTiming, PerformanceEntry);
219
220
const nodeTiming = new PerformanceNodeTiming();
221
0 commit comments