32 lines
1.6 KiB
Text
32 lines
1.6 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty19.ts ===
|
|
var i = {
|
|
>i : Symbol(i, Decl(symbolProperty19.ts, 0, 3))
|
|
|
|
[Symbol.iterator]: { p: null },
|
|
>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))
|
|
>p : Symbol(p, Decl(symbolProperty19.ts, 1, 24))
|
|
|
|
[Symbol.toStringTag]() { return { p: undefined }; }
|
|
>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))
|
|
>p : Symbol(p, Decl(symbolProperty19.ts, 2, 37))
|
|
>undefined : Symbol(undefined)
|
|
}
|
|
|
|
var it = i[Symbol.iterator];
|
|
>it : Symbol(it, Decl(symbolProperty19.ts, 5, 3))
|
|
>i : Symbol(i, Decl(symbolProperty19.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(symbolProperty19.ts, 6, 3))
|
|
>i : Symbol(i, Decl(symbolProperty19.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))
|
|
|