From 68608b2bdc88df56d5c2ade506603764002f1cd8 Mon Sep 17 00:00:00 2001 From: himself65 Date: Sat, 14 Mar 2020 19:14:08 +0800 Subject: [PATCH] lib: replace Array to ArrayIsArray by primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/32258 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- lib/internal/source_map/source_map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/source_map/source_map.js b/lib/internal/source_map/source_map.js index acff068be2a6e7..35ec3ae740e887 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); } }