Skip to content

Commit 4f366e2

Browse files
committed
fixup! [Squash] nits
1 parent 1d7fc41 commit 4f366e2

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

lib/internal/perf/event_loop_delay.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ const {
88
ELDHistogram: _ELDHistogram,
99
} = internalBinding('performance');
1010

11+
const {
12+
validateNumber,
13+
validateObject,
14+
} = require('internal/validators');
15+
1116
const {
1217
codes: {
13-
ERR_INVALID_ARG_TYPE,
1418
ERR_INVALID_ARG_VALUE,
1519
},
1620
} = require('internal/errors');

lib/internal/perf/nodetiming.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const {
44
ObjectDefineProperties,
55
ObjectSetPrototypeOf,
6+
SafeArrayIterator,
67
SafeSet,
78
} = primordials;
89

lib/internal/perf/observe.js

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

33
const {
4-
Array,
54
ArrayFrom,
65
ArrayIsArray,
76
ArrayPrototypeFilter,
7+
ArrayPrototypeIncludes,
8+
ArrayPrototypePush,
9+
ArrayPrototypeSlice,
810
ArrayPrototypeSort,
911
ObjectDefineProperties,
1012
ObjectFreeze,
@@ -89,7 +91,7 @@ function queuePending() {
8991
isPending = true;
9092
setImmediate(() => {
9193
isPending = false;
92-
for(const pending of kPending)
94+
for (const pending of kPending)
9395
pending[kDispatch]();
9496
kPending.clear();
9597
});

lib/internal/perf/usertiming.js

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

33
const {
4-
ObjectEntries,
4+
ObjectKeys,
55
SafeMap,
66
} = primordials;
77

@@ -114,8 +114,7 @@ function calculateStartDuration(startOrMeasureOptions, endMark) {
114114
}
115115

116116
end = getMark(endMark || end) ??
117-
(start !== undefined && duration !== undefined) ?
118-
start + duration : now();
117+
(start !== undefined && duration !== undefined) ? start + duration : now();
119118

120119
start ??= (duration !== undefined) ? end - duration : 0;
121120

0 commit comments

Comments
 (0)