Skip to content

Commit

Permalink
[Squash] nits
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
jasnell and aduh95 authored Feb 2, 2021
1 parent 078565b commit 2ecbd33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ added:
- v12.17.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/00000
pr-url: https://github.com/nodejs/node/pull/37136
description: Runtime deprecated. Now moved to the detail property
when entryType is 'gc'.
-->
Expand Down Expand Up @@ -337,7 +337,7 @@ The name of the performance entry.
added: v8.5.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/00000
pr-url: https://github.com/nodejs/node/pull/37136
description: Runtime deprecated. Now moved to the detail property
when entryType is 'gc'.
-->
Expand Down Expand Up @@ -571,7 +571,7 @@ Disconnects the `PerformanceObserver` instance from all notifications.
added: v8.5.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/00000
pr-url: https://github.com/nodejs/node/pull/37136
description: Updated to conform to User Timing Level 3. The
buffered option has been removed.
-->
Expand Down
6 changes: 3 additions & 3 deletions lib/internal/perf/timerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const {
} = primordials;

const {
now,
InternalPerformanceEntry,
now,
} = require('internal/perf/perf');

const {
isConstructor
isConstructor,
} = internalBinding('util');

const {
Expand All @@ -24,7 +24,7 @@ const {
} = require('internal/errors');

const {
enqueue
enqueue,
} = require('internal/perf/observe');

const kTimerified = Symbol('kTimerified');
Expand Down
8 changes: 4 additions & 4 deletions lib/perf_hooks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

const {
ObjectDefineProperty,
ObjectDefineProperties,
ObjectDefineProperty,
ObjectSetPrototypeOf,
TypeError,
} = primordials;
Expand All @@ -13,8 +13,8 @@ const {
} = internalBinding('performance');

const {
PerformanceEntry,
now,
PerformanceEntry
} = require('internal/perf/perf');
const { PerformanceObserver } = require('internal/perf/observe');

Expand Down Expand Up @@ -101,11 +101,11 @@ ObjectDefineProperties(Performance.prototype, {
});

module.exports = {
performance: new InternalPerformance(),
PerformanceEntry,
PerformanceMark,
PerformanceObserver,
monitorEventLoopDelay
monitorEventLoopDelay,
performance: new InternalPerformance(),
};

ObjectDefineProperty(module.exports, 'constants', {
Expand Down

0 comments on commit 2ecbd33

Please sign in to comment.