summaryrefslogtreecommitdiff
path: root/lib/perf_hooks.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/perf_hooks.js')
-rw-r--r--lib/perf_hooks.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/perf_hooks.js b/lib/perf_hooks.js
index 7121fb3899..0b8bab03e4 100644
--- a/lib/perf_hooks.js
+++ b/lib/perf_hooks.js
@@ -3,6 +3,7 @@
const {
ArrayIsArray,
Boolean,
+ NumberIsSafeInteger,
ObjectDefineProperties,
ObjectDefineProperty,
ObjectKeys,
@@ -604,7 +605,7 @@ function monitorEventLoopDelay(options = {}) {
throw new ERR_INVALID_ARG_TYPE('options.resolution',
'number', resolution);
}
- if (resolution <= 0 || !Number.isSafeInteger(resolution)) {
+ if (resolution <= 0 || !NumberIsSafeInteger(resolution)) {
throw new ERR_INVALID_OPT_VALUE.RangeError('resolution', resolution);
}
return new ELDHistogram(new _ELDHistogram(resolution));