blob: 1454bc0c3adf8c5a7bdf76e68c305c78e453176b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |reftest| skip-if(!this.uneval)
// 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);
|