Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index 4e50f7f3dffdb46eadecca0b3faf3bd7587b9c1c..96d968fe814dc70853766e2408f4bbb98c0fa5c5 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", |