Skip to content

Commit

Permalink
lib: replace Array to ArrayIsArray by primordials
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
himself65 authored and addaleax committed Mar 30, 2020
1 parent 7c3c062 commit 68608b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/source_map/source_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
'use strict';

const {
Array
ArrayIsArray
} = primordials;

const {
Expand Down Expand Up @@ -316,7 +316,7 @@ function cloneSourceMapV3(payload) {
}
payload = { ...payload };
for (const key in payload) {
if (payload.hasOwnProperty(key) && Array.isArray(payload[key])) {
if (payload.hasOwnProperty(key) && ArrayIsArray(payload[key])) {
payload[key] = payload[key].slice(0);
}
}
Expand Down

0 comments on commit 68608b2

Please sign in to comment.