Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index baf8edb99128af2a1b7a26f07107d91fd8f59daf..06f01e32cafd445b4647c8ce84a17439fa05887c 100644 |
--- a/src/typedarray.js |
+++ b/src/typedarray.js |
@@ -115,6 +115,8 @@ function NAMEConstructor(arg1, arg2, arg3) { |
if (%_IsConstructCall()) { |
if (IS_ARRAYBUFFER(arg1)) { |
NAMEConstructByArrayBuffer(this, arg1, arg2, arg3); |
+ } else if (IS_SHAREDARRAYBUFFER(arg1)) { |
+ throw MakeTypeError(kInvalidArgument); |
} else if (IS_NUMBER(arg1) || IS_STRING(arg1) || |
IS_BOOLEAN(arg1) || IS_UNDEFINED(arg1)) { |
NAMEConstructByLength(this, arg1); |