mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-11 14:37:56 -05:00
17 lines
218 B
TypeScript
17 lines
218 B
TypeScript
//! test_output({})
|
|
|
|
export default function () {
|
|
let x = new X();
|
|
[...x];
|
|
|
|
return x;
|
|
}
|
|
|
|
class X {
|
|
constructor() {}
|
|
|
|
[Symbol.iterator]() {
|
|
return { next: () => ({ value: undefined, done: true }) };
|
|
}
|
|
}
|