673fa41418
* Move iterabl related stuffs off from es2015.collection * Move symbol.wellknown stuffs off from es2015.collection * Add map & set constructor support when targeting ES5 * Address PR: move symbol.iterator to es2015.iterable * Move Symbol.Iterator into es2015.iterable * Update baselines
21 lines
843 B
Plaintext
21 lines
843 B
Plaintext
=== tests/cases/conformance/es6/for-ofStatements/for-of28.ts ===
|
|
for (var v of new StringIterator) { }
|
|
>v : Symbol(v, Decl(for-of28.ts, 0, 8))
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
|
|
class StringIterator {
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
|
|
next: any;
|
|
>next : Symbol(StringIterator.next, Decl(for-of28.ts, 2, 22))
|
|
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
|
|
|
|
return this;
|
|
>this : Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
}
|
|
}
|