* 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
26 lines
964 B
Text
26 lines
964 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of26.ts ===
|
|
var x: any;
|
|
>x : Symbol(x, Decl(for-of26.ts, 0, 3))
|
|
|
|
for (var v of new StringIterator) { }
|
|
>v : Symbol(v, Decl(for-of26.ts, 1, 8))
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
|
|
|
|
class StringIterator {
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
|
|
|
|
next() {
|
|
>next : Symbol(StringIterator.next, Decl(for-of26.ts, 3, 22))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(for-of26.ts, 0, 3))
|
|
}
|
|
[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-of26.ts, 1, 37))
|
|
}
|
|
}
|