Lines Matching refs:Symbol
35 function IndirectSymbol() { return new Symbol }
39 symbols.push(Symbol())
40 symbols.push(Symbol(undefined))
41 symbols.push(Symbol("66"))
42 symbols.push(Symbol(66))
43 symbols.push(Symbol(Symbol()))
44 symbols.push((new Symbol).valueOf())
45 symbols.push((new Symbol()).valueOf())
46 symbols.push((new Symbol(Symbol())).valueOf())
47 symbols.push(Object(Symbol()).valueOf())
60 assertEquals("symbol", typeof symbols[i])
61 assertTrue(typeof symbols[i] === "symbol")
63 assertEquals("Symbol", %_ClassOf(new Symbol(symbols[i])))
64 assertEquals("Symbol", %_ClassOf(Object(symbols[i])))
71 assertSame(Object.prototype, Symbol.prototype.__proto__)
72 assertSame(Symbol.prototype, Symbol().__proto__)
73 assertSame(Symbol.prototype, Symbol(Symbol()).__proto__)
74 assertSame(Symbol.prototype, (new Symbol).__proto__)
75 assertSame(Symbol.prototype, (new Symbol()).__proto__)
76 assertSame(Symbol.prototype, (new Symbol(Symbol())).__proto__)
77 assertSame(Symbol.prototype, Object(Symbol()).__proto__)
79 assertSame(Symbol.prototype, symbols[i].__proto__)
86 assertFalse(Object === Symbol.prototype.constructor)
87 assertFalse(Symbol === Object.prototype.constructor)
88 assertSame(Symbol, Symbol.prototype.constructor)
89 assertSame(Symbol, Symbol().__proto__.constructor)
90 assertSame(Symbol, Symbol(Symbol()).__proto__.constructor)
91 assertSame(Symbol, (new Symbol).__proto__.constructor)
92 assertSame(Symbol, (new Symbol()).__proto__.constructor)
93 assertSame(Symbol, (new Symbol(Symbol())).__proto__.constructor)
94 assertSame(Symbol, Object(Symbol()).__proto__.constructor)
96 assertSame(Symbol, symbols[i].__proto__.constructor)
116 assertThrows(function() { (new Symbol(symbols[i])).toString() }, TypeError)
118 assertEquals("[object Symbol]", Object.prototype.toString.call(symbols[i]))
151 // Every symbol should equal itself, and non-strictly equal its wrapper.
158 assertFalse(symbols[i] === new Symbol(symbols[i]))
159 assertFalse(new Symbol(symbols[i]) === symbols[i])
160 assertTrue(symbols[i] == new Symbol(symbols[i]))
161 assertTrue(new Symbol(symbols[i]) == symbols[i])
342 // but not between scavenges. This must also apply for symbol keys.
343 var key = Symbol("key");