Index: src/js/arraybuffer.js |
diff --git a/src/js/arraybuffer.js b/src/js/arraybuffer.js |
index 1159488160bc73f8919a639f72fe84fe88f499a4..1e405638d582936b83461502706d0b6b9310f920 100644 |
--- a/src/js/arraybuffer.js |
+++ b/src/js/arraybuffer.js |
@@ -29,7 +29,7 @@ utils.Import(function(from) { |
// ------------------------------------------------------------------- |
function ArrayBufferConstructor(length) { // length = 1 |
- if (%_IsConstructCall()) { |
+ if (!IS_UNDEFINED(new.target)) { |
var byteLength = ToPositiveInteger(length, kInvalidArrayBufferLength); |
%ArrayBufferInitialize(this, byteLength, kNotShared); |
} else { |