Index: src/js/typedarray.js |
diff --git a/src/js/typedarray.js b/src/js/typedarray.js |
index c25966ce992f8a8a0e34f696d6e42d57d212fe07..2c0fc126f6e9c3b63fb3ed2a5f1c87866cc8be27 100644 |
--- a/src/js/typedarray.js |
+++ b/src/js/typedarray.js |
@@ -203,7 +203,7 @@ function NAMEConstructByIterable(obj, iterable, iteratorFn) { |
} |
function NAMEConstructor(arg1, arg2, arg3) { |
- if (%_IsConstructCall()) { |
+ if (!IS_UNDEFINED(new.target)) { |
if (IS_ARRAYBUFFER(arg1) || IS_SHAREDARRAYBUFFER(arg1)) { |
NAMEConstructByArrayBuffer(this, arg1, arg2, arg3); |
} else if (IS_NUMBER(arg1) || IS_STRING(arg1) || |