From 036bf92223cba446e19e05a9719ea93ff171f3d2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 5 Jun 2014 07:13:07 -0700 Subject: [PATCH] Ensure a byte length is passed. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index e9d8406fe..ff37680b5 100644 --- a/lodash.js +++ b/lodash.js @@ -653,7 +653,7 @@ /** Native method shortcuts */ var ArrayBuffer = isNative(ArrayBuffer = context.ArrayBuffer) && ArrayBuffer, - bufferSlice = isNative(bufferSlice = ArrayBuffer && (new ArrayBuffer).slice) && bufferSlice, + bufferSlice = isNative(bufferSlice = ArrayBuffer && new ArrayBuffer(0).slice) && bufferSlice, ceil = Math.ceil, clearTimeout = context.clearTimeout, Float64Array = isNative(Float64Array = context.Float64Array) && Float64Array,