summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Symbol/typeof.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/non262/Symbol/typeof.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/tests/non262/Symbol/typeof.js b/js/src/tests/non262/Symbol/typeof.js
new file mode 100644
index 0000000000..104ae66dfd
--- /dev/null
+++ b/js/src/tests/non262/Symbol/typeof.js
@@ -0,0 +1,11 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
+assertEq(typeof Symbol(), "symbol");
+assertEq(typeof Symbol("ponies"), "symbol");
+assertEq(typeof Symbol.for("ponies"), "symbol");
+
+assertEq(typeof Object(Symbol()), "object");
+
+if (typeof reportCompare === "function")
+ reportCompare(0, 0);