Skip to content

Commit 2ecbd33

Browse files
jasnelladuh95
andauthored
[Squash] nits
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 078565b commit 2ecbd33

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

doc/api/perf_hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ added:
302302
- v12.17.0
303303
changes:
304304
- version: REPLACEME
305-
pr-url: https://github.com/nodejs/node/pull/00000
305+
pr-url: https://github.com/nodejs/node/pull/37136
306306
description: Runtime deprecated. Now moved to the detail property
307307
when entryType is 'gc'.
308308
-->
@@ -337,7 +337,7 @@ The name of the performance entry.
337337
added: v8.5.0
338338
changes:
339339
- version: REPLACEME
340-
pr-url: https://github.com/nodejs/node/pull/00000
340+
pr-url: https://github.com/nodejs/node/pull/37136
341341
description: Runtime deprecated. Now moved to the detail property
342342
when entryType is 'gc'.
343343
-->
@@ -571,7 +571,7 @@ Disconnects the `PerformanceObserver` instance from all notifications.
571571
added: v8.5.0
572572
changes:
573573
- version: REPLACEME
574-
pr-url: https://github.com/nodejs/node/pull/00000
574+
pr-url: https://github.com/nodejs/node/pull/37136
575575
description: Updated to conform to User Timing Level 3. The
576576
buffered option has been removed.
577577
-->

lib/internal/perf/timerify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ const {
99
} = primordials;
1010

1111
const {
12-
now,
1312
InternalPerformanceEntry,
13+
now,
1414
} = require('internal/perf/perf');
1515

1616
const {
17-
isConstructor
17+
isConstructor,
1818
} = internalBinding('util');
1919

2020
const {
@@ -24,7 +24,7 @@ const {
2424
} = require('internal/errors');
2525

2626
const {
27-
enqueue
27+
enqueue,
2828
} = require('internal/perf/observe');
2929

3030
const kTimerified = Symbol('kTimerified');

lib/perf_hooks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

33
const {
4-
ObjectDefineProperty,
54
ObjectDefineProperties,
5+
ObjectDefineProperty,
66
ObjectSetPrototypeOf,
77
TypeError,
88
} = primordials;
@@ -13,8 +13,8 @@ const {
1313
} = internalBinding('performance');
1414

1515
const {
16+
PerformanceEntry,
1617
now,
17-
PerformanceEntry
1818
} = require('internal/perf/perf');
1919
const { PerformanceObserver } = require('internal/perf/observe');
2020

@@ -101,11 +101,11 @@ ObjectDefineProperties(Performance.prototype, {
101101
});
102102

103103
module.exports = {
104-
performance: new InternalPerformance(),
105104
PerformanceEntry,
106105
PerformanceMark,
107106
PerformanceObserver,
108-
monitorEventLoopDelay
107+
monitorEventLoopDelay,
108+
performance: new InternalPerformance(),
109109
};
110110

111111
ObjectDefineProperty(module.exports, 'constants', {

0 commit comments

Comments
 (0)