31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
=== tests/cases/conformance/es6/spread/iteratorSpreadInArray4.ts ===
|
|
var array = [0, 1, ...new SymbolIterator];
|
|
>array : Symbol(array, Decl(iteratorSpreadInArray4.ts, 0, 3))
|
|
>SymbolIterator : Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42))
|
|
|
|
class SymbolIterator {
|
|
>SymbolIterator : Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42))
|
|
|
|
next() {
|
|
>next : Symbol(next, Decl(iteratorSpreadInArray4.ts, 2, 22))
|
|
|
|
return {
|
|
value: Symbol(),
|
|
>value : Symbol(value, Decl(iteratorSpreadInArray4.ts, 4, 16))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
|
|
done: false
|
|
>done : Symbol(done, Decl(iteratorSpreadInArray4.ts, 5, 28))
|
|
|
|
};
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
return this;
|
|
>this : Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42))
|
|
}
|
|
}
|