diff --git a/.internal/initCloneArray.js b/.internal/initCloneArray.js index 6394fa50b..8c2558093 100644 --- a/.internal/initCloneArray.js +++ b/.internal/initCloneArray.js @@ -10,7 +10,7 @@ const hasOwnProperty = Object.prototype.hasOwnProperty */ function initCloneArray(array) { const length = array.length - const result = array.constructor(length) + const result = new array.constructor(length) // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {