From 8cddabbf562e9646a573fc2a8f57ba1dd151e1f3 Mon Sep 17 00:00:00 2001 From: "dslomov@chromium.org" Date: Tue, 30 Apr 2013 17:50:04 +0000 Subject: [PATCH] patch from issue 13993029 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14503 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/typedarray.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/typedarray.js b/src/typedarray.js index 4e50f7f..96d968f 100644 --- a/src/typedarray.js +++ b/src/typedarray.js @@ -86,8 +86,7 @@ function ArrayBufferSlice(start, end) { function CreateTypedArrayConstructor(name, elementSize, arrayId, constructor) { function ConstructByArrayBuffer(obj, buffer, byteOffset, length) { - var offset = IS_UNDEFINED(byteOffset) - ? 0 : offset = TO_POSITIVE_INTEGER(byteOffset); + var offset = IS_UNDEFINED(byteOffset) ? 0 : TO_POSITIVE_INTEGER(byteOffset); if (offset % elementSize !== 0) { throw MakeRangeError("invalid_typed_array_alignment", -- 2.7.4