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

6 lines
109 B
TypeScript

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