38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of22.ts ===
|
|
class Foo { }
|
|
>Foo : Symbol(Foo, Decl(for-of22.ts, 0, 0))
|
|
|
|
class FooIterator {
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of22.ts, 0, 13))
|
|
|
|
next() {
|
|
>next : Symbol(FooIterator.next, Decl(for-of22.ts, 1, 19))
|
|
|
|
return {
|
|
value: new Foo,
|
|
>value : Symbol(value, Decl(for-of22.ts, 3, 16))
|
|
>Foo : Symbol(Foo, Decl(for-of22.ts, 0, 0))
|
|
|
|
done: false
|
|
>done : Symbol(done, Decl(for-of22.ts, 4, 27))
|
|
|
|
};
|
|
}
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
|
|
|
|
return this;
|
|
>this : Symbol(FooIterator, Decl(for-of22.ts, 0, 13))
|
|
}
|
|
}
|
|
|
|
v;
|
|
>v : Symbol(v, Decl(for-of22.ts, 14, 8))
|
|
|
|
for (var v of new FooIterator) {
|
|
>v : Symbol(v, Decl(for-of22.ts, 14, 8))
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of22.ts, 0, 13))
|
|
|
|
}
|