summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Symbol/typeof.js
blob: 104ae66dfde131710fe5bec0a68771e0109d6e7e (plain)
1
2
3
4
5
6
7
8
9
10
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);