Index: src/js/harmony-sharedarraybuffer.js |
diff --git a/src/js/harmony-sharedarraybuffer.js b/src/js/harmony-sharedarraybuffer.js |
index b4c34151a355a2012b3b1b8b29df4293d0fde09c..37480617b51c7bea70c14e3f3ea1140e0f9cc51b 100644 |
--- a/src/js/harmony-sharedarraybuffer.js |
+++ b/src/js/harmony-sharedarraybuffer.js |
@@ -22,7 +22,7 @@ utils.Import(function(from) { |
// ------------------------------------------------------------------- |
function SharedArrayBufferConstructor(length) { // length = 1 |
- if (%_IsConstructCall()) { |
+ if (!IS_UNDEFINED(new.target)) { |
var byteLength = ToPositiveInteger(length, kInvalidArrayBufferLength); |
%ArrayBufferInitialize(this, byteLength, kShared); |
} else { |