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

15 lines
235 B
TypeScript

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