swc/crates/swc_ecma_parser/tests/tsc/for-of30.ts

17 lines
242 B
TypeScript

//@target: ES6
class StringIterator {
next() {
return {
done: false,
value: ""
}
}
return = 0;
[Symbol.iterator]() {
return this;
}
}
for (var v of new StringIterator) { }