Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index da12ccf32374dfd42c9d5331b5f69ab8fa0295a0..1e67bc30c6cd7d21023620acec95a9aa69bb0e42 100644 |
--- a/src/typedarray.js |
+++ b/src/typedarray.js |
@@ -30,7 +30,7 @@ |
// This file relies on the fact that the following declaration has been made |
// in runtime.js: |
// var $Array = global.Array; |
- |
+var $ArrayBuffer = global.ArrayBuffer; |
// --------------- Typed Arrays --------------------- |
@@ -70,7 +70,7 @@ function CreateTypedArrayConstructor(name, elementSize, arrayId, constructor) { |
function ConstructByLength(obj, length) { |
var l = ToPositiveInteger(length, "invalid_typed_array_length"); |
var byteLength = l * elementSize; |
- var buffer = new global.ArrayBuffer(byteLength); |
+ var buffer = new $ArrayBuffer(byteLength); |
%TypedArrayInitialize(obj, arrayId, buffer, 0, byteLength); |
} |