Index: src/arraybuffer.js |
diff --git a/src/arraybuffer.js b/src/arraybuffer.js |
index 06cc653b0969ea82e5077222baeeb7008cb0b58f..4a4f570146568464dfe8938502e9a827be60c6cd 100644 |
--- a/src/arraybuffer.js |
+++ b/src/arraybuffer.js |
@@ -36,7 +36,7 @@ function ArrayBufferConstructor(length) { // length = 1 |
var byteLength = ToPositiveInteger(length, 'invalid_array_buffer_length'); |
%ArrayBufferInitialize(this, byteLength); |
} else { |
- return new $ArrayBuffer(length); |
+ throw MakeTypeError('constructor_not_function', ["ArrayBuffer"]); |
} |
} |