diff options
Diffstat (limited to 'node_modules/core-js/modules/_typed-buffer.js')
-rw-r--r-- | node_modules/core-js/modules/_typed-buffer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/core-js/modules/_typed-buffer.js b/node_modules/core-js/modules/_typed-buffer.js index 13ae20862..c24cef38c 100644 --- a/node_modules/core-js/modules/_typed-buffer.js +++ b/node_modules/core-js/modules/_typed-buffer.js @@ -40,7 +40,7 @@ var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; // IEEE754 conversions based on https://github.com/feross/ieee754 function packIEEE754(value, mLen, nBytes) { - var buffer = Array(nBytes); + var buffer = new Array(nBytes); var eLen = nBytes * 8 - mLen - 1; var eMax = (1 << eLen) - 1; var eBias = eMax >> 1; @@ -158,7 +158,7 @@ if (!$typed.ABV) { $ArrayBuffer = function ArrayBuffer(length) { anInstance(this, $ArrayBuffer, ARRAY_BUFFER); var byteLength = toIndex(length); - this._b = arrayFill.call(Array(byteLength), 0); + this._b = arrayFill.call(new Array(byteLength), 0); this[$LENGTH] = byteLength; }; |