summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/extensions/symbol-uneval.js
blob: a1c2a9097ee4722f5b0550c72d4d1b1038f30871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

assertEq(uneval(Symbol.iterator), "Symbol.iterator");
assertEq(uneval(Symbol()), "Symbol()");
assertEq(uneval(Symbol("")), 'Symbol("")');
assertEq(uneval(Symbol("ponies")), 'Symbol("ponies")');
assertEq(uneval(Symbol.for("ponies")), 'Symbol.for("ponies")');

assertEq({glyph: Symbol(undefined)}.toSource(), "({glyph:Symbol()})");

if (typeof reportCompare === "function")
    reportCompare(0, 0);