diff options
Diffstat (limited to 'node_modules/core-js/modules/es6.array.slice.js')
-rw-r--r-- | node_modules/core-js/modules/es6.array.slice.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/core-js/modules/es6.array.slice.js b/node_modules/core-js/modules/es6.array.slice.js index 988b75524..bdd496ecb 100644 --- a/node_modules/core-js/modules/es6.array.slice.js +++ b/node_modules/core-js/modules/es6.array.slice.js @@ -18,7 +18,7 @@ $export($export.P + $export.F * require('./_fails')(function () { var start = toAbsoluteIndex(begin, len); var upTo = toAbsoluteIndex(end, len); var size = toLength(upTo - start); - var cloned = Array(size); + var cloned = new Array(size); var i = 0; for (; i < size; i++) cloned[i] = klass == 'String' ? this.charAt(start + i) |