41 lines
2.1 KiB
Text
41 lines
2.1 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty18.ts ===
|
|
var i = {
|
|
>i : Symbol(i, Decl(symbolProperty18.ts, 0, 3))
|
|
|
|
[Symbol.iterator]: 0,
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
[Symbol.toStringTag]() { return "" },
|
|
>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
|
|
set [Symbol.toPrimitive](p: boolean) { }
|
|
>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
>p : Symbol(p, Decl(symbolProperty18.ts, 3, 29))
|
|
}
|
|
|
|
var it = i[Symbol.iterator];
|
|
>it : Symbol(it, Decl(symbolProperty18.ts, 6, 3))
|
|
>i : Symbol(i, Decl(symbolProperty18.ts, 0, 3))
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
var str = i[Symbol.toStringTag]();
|
|
>str : Symbol(str, Decl(symbolProperty18.ts, 7, 3))
|
|
>i : Symbol(i, Decl(symbolProperty18.ts, 0, 3))
|
|
>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1278, 24))
|
|
|
|
i[Symbol.toPrimitive] = false;
|
|
>i : Symbol(i, Decl(symbolProperty18.ts, 0, 3))
|
|
>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1272, 18))
|
|
|