39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
|
=== tests/cases/conformance/es6/Symbols/symbolProperty19.ts ===
|
||
|
var i = {
|
||
|
>i : { [Symbol.iterator]: { p: any; }; [Symbol.toStringTag](): { p: any; }; }
|
||
|
>{ [Symbol.iterator]: { p: null }, [Symbol.toStringTag]() { return { p: undefined }; }} : { [Symbol.iterator]: { p: null; }; [Symbol.toStringTag](): { p: any; }; }
|
||
|
|
||
|
[Symbol.iterator]: { p: null },
|
||
|
>Symbol.iterator : symbol
|
||
|
>Symbol : SymbolConstructor
|
||
|
>iterator : symbol
|
||
|
>{ p: null } : { p: null; }
|
||
|
>p : null
|
||
|
|
||
|
[Symbol.toStringTag]() { return { p: undefined }; }
|
||
|
>Symbol.toStringTag : symbol
|
||
|
>Symbol : SymbolConstructor
|
||
|
>toStringTag : symbol
|
||
|
>{ p: undefined } : { p: undefined; }
|
||
|
>p : undefined
|
||
|
>undefined : undefined
|
||
|
}
|
||
|
|
||
|
var it = i[Symbol.iterator];
|
||
|
>it : { p: any; }
|
||
|
>i[Symbol.iterator] : { p: any; }
|
||
|
>i : { [Symbol.iterator]: { p: any; }; [Symbol.toStringTag](): { p: any; }; }
|
||
|
>Symbol.iterator : symbol
|
||
|
>Symbol : SymbolConstructor
|
||
|
>iterator : symbol
|
||
|
|
||
|
var str = i[Symbol.toStringTag]();
|
||
|
>str : { p: any; }
|
||
|
>i[Symbol.toStringTag]() : { p: any; }
|
||
|
>i[Symbol.toStringTag] : () => { p: any; }
|
||
|
>i : { [Symbol.iterator]: { p: any; }; [Symbol.toStringTag](): { p: any; }; }
|
||
|
>Symbol.toStringTag : symbol
|
||
|
>Symbol : SymbolConstructor
|
||
|
>toStringTag : symbol
|
||
|
|