diff options
Diffstat (limited to 'lib/perf_hooks.js')
-rw-r--r-- | lib/perf_hooks.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/perf_hooks.js b/lib/perf_hooks.js index 1086c4b519..b84498055f 100644 --- a/lib/perf_hooks.js +++ b/lib/perf_hooks.js @@ -33,7 +33,6 @@ const { const { AsyncResource } = require('async_hooks'); const L = require('internal/linkedlist'); const kInspect = require('internal/util').customInspectSymbol; -const { inherits } = require('util'); const kCallback = Symbol('callback'); const kTypes = Symbol('types'); @@ -208,10 +207,8 @@ class PerformanceNodeTiming { }; } } -// Use this instead of Extends because we want PerformanceEntry in the -// prototype chain but we do not want to use the PerformanceEntry -// constructor for this. -inherits(PerformanceNodeTiming, PerformanceEntry); +Object.setPrototypeOf( + PerformanceNodeTiming.prototype, PerformanceEntry.prototype); const nodeTiming = new PerformanceNodeTiming(); |