a299d2dd1c
* isDeclarationName: support ComputedPropertyName * update additional baseline
29 lines
538 B
Text
29 lines
538 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of26.ts ===
|
|
class StringIterator {
|
|
>StringIterator : StringIterator
|
|
|
|
next() {
|
|
>next : () => any
|
|
|
|
return x;
|
|
>x : any
|
|
}
|
|
[Symbol.iterator]() {
|
|
>[Symbol.iterator] : () => this
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
return this;
|
|
>this : this
|
|
}
|
|
}
|
|
|
|
var x: any;
|
|
>x : any
|
|
|
|
for (var v of new StringIterator) { }
|
|
>v : any
|
|
>new StringIterator : StringIterator
|
|
>StringIterator : typeof StringIterator
|
|
|