Index: src/js/typedarray.js |
diff --git a/src/js/typedarray.js b/src/js/typedarray.js |
index 50aae94bdcca99cbc567901d775e767bbac5f7b4..baa49b458c7f94c599e7d800692e232a4ff507b7 100644 |
--- a/src/js/typedarray.js |
+++ b/src/js/typedarray.js |
@@ -263,7 +263,8 @@ function NAMEConstructor(arg1, arg2, arg3) { |
if (IS_ARRAYBUFFER(arg1) || IS_SHAREDARRAYBUFFER(arg1)) { |
NAMEConstructByArrayBuffer(this, arg1, arg2, arg3); |
} else if (IS_NUMBER(arg1) || IS_STRING(arg1) || |
- IS_BOOLEAN(arg1) || IS_UNDEFINED(arg1)) { |
+ IS_BOOLEAN(arg1) || IS_UNDEFINED(arg1) || |
+ IS_SYMBOL(arg1) || IS_NULL(arg1)) { |
Dan Ehrenberg
2016/06/23 22:03:33
This will become outdated next time a new primitiv
bakkot
2016/06/23 22:29:53
Done.
|
NAMEConstructByLength(this, arg1); |
} else if (IS_TYPEDARRAY(arg1)) { |
NAMEConstructByTypedArray(this, arg1); |