Skip to content

Commit 68608b2

Browse files
himself65addaleax
authored andcommitted
lib: replace Array to ArrayIsArray by primordials
PR-URL: #32258 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 7c3c062 commit 68608b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/source_map/source_map.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
'use strict';
6868

6969
const {
70-
Array
70+
ArrayIsArray
7171
} = primordials;
7272

7373
const {
@@ -316,7 +316,7 @@ function cloneSourceMapV3(payload) {
316316
}
317317
payload = { ...payload };
318318
for (const key in payload) {
319-
if (payload.hasOwnProperty(key) && Array.isArray(payload[key])) {
319+
if (payload.hasOwnProperty(key) && ArrayIsArray(payload[key])) {
320320
payload[key] = payload[key].slice(0);
321321
}
322322
}

0 commit comments

Comments
 (0)