diff options
author | himself65 <himself65@outlook.com> | 2020-03-14 14:14:08 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-30 11:22:52 +0300 |
commit | 1bbd679adc291a9ae9b7dc7bbca863883cee9638 (patch) | |
tree | 90ec950cf7b1b5d76ddce9436817f36dd4d80b27 /lib/internal/source_map | |
parent | e034f5c3d9b7f2f85a27c4accc59e2ded868e63a (diff) |
lib: replace Array to ArrayIsArray by primordials
PR-URL: https://github.com/nodejs/node/pull/32258
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/internal/source_map')
-rw-r--r-- | lib/internal/source_map/source_map.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/source_map/source_map.js b/lib/internal/source_map/source_map.js index acff068be2a..35ec3ae740e 100644 --- a/lib/internal/source_map/source_map.js +++ b/lib/internal/source_map/source_map.js @@ -67,7 +67,7 @@ 'use strict'; const { - Array + ArrayIsArray } = primordials; const { @@ -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); } } |