mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 23:48:02 -05:00
20 lines
219 B
TypeScript
20 lines
219 B
TypeScript
//! test_output(0)
|
|
|
|
export default function main() {
|
|
let foo = new Foo();
|
|
foo.inc();
|
|
|
|
return foo.x;
|
|
}
|
|
|
|
class Foo {
|
|
x = 0;
|
|
|
|
inc() {
|
|
try {
|
|
this.x++;
|
|
throw new Error("boom");
|
|
} catch {}
|
|
}
|
|
}
|