Add failing input

This commit is contained in:
Andrew Morris
2023-04-04 15:28:06 +10:00
parent f2db17ef27
commit 90eef3f826

View File

@@ -0,0 +1,20 @@
// test_output! 1
// (Should be 0.)
export default function main() {
const foo = new Foo();
foo.inc();
return foo.x;
}
class Foo {
x = 0;
inc() {
try {
this.x++;
throw new Error("boom");
} catch {}
}
}