Fix typo
R=rossberg@chromium.org BUG= Review URL: https://codereview.chromium.org/13993029 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14505 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
ca8144446b
commit
7bfd5e9031
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user