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

9 lines
149 B
TypeScript

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