Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index e105afc38e54799c8112320949232a008c835848..daade1328f22f6ae913285e823e0e3c7078cde53 100644 |
--- a/src/typedarray.js |
+++ b/src/typedarray.js |
@@ -93,7 +93,7 @@ function CreateTypedArrayConstructor(name, elementSize, arrayId, constructor) { |
"start offset", name, elementSize); |
} |
var bufferByteLength = %ArrayBufferGetByteLength(buffer); |
- if (offset >= bufferByteLength) { |
+ if (offset > bufferByteLength) { |
throw MakeRangeError("invalid_typed_array_offset"); |
} |