* 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
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of20.ts ===
|
|
for (let v of new FooIterator) {
|
|
>v : Symbol(v, Decl(for-of20.ts, 0, 8))
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of20.ts, 4, 13))
|
|
|
|
v;
|
|
>v : Symbol(v, Decl(for-of20.ts, 0, 8))
|
|
}
|
|
|
|
class Foo { }
|
|
>Foo : Symbol(Foo, Decl(for-of20.ts, 2, 1))
|
|
|
|
class FooIterator {
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of20.ts, 4, 13))
|
|
|
|
next() {
|
|
>next : Symbol(FooIterator.next, Decl(for-of20.ts, 5, 19))
|
|
|
|
return {
|
|
value: new Foo,
|
|
>value : Symbol(value, Decl(for-of20.ts, 7, 16))
|
|
>Foo : Symbol(Foo, Decl(for-of20.ts, 2, 1))
|
|
|
|
done: false
|
|
>done : Symbol(done, Decl(for-of20.ts, 8, 27))
|
|
|
|
};
|
|
}
|
|
[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(FooIterator, Decl(for-of20.ts, 4, 13))
|
|
}
|
|
}
|