mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 07:57:57 -05:00
18 lines
234 B
TypeScript
18 lines
234 B
TypeScript
// test_output!: "Caught: boom"
|
|
|
|
export default function () {
|
|
try {
|
|
callBoom();
|
|
} catch (error) {
|
|
return `Caught: ${error.message}`;
|
|
}
|
|
}
|
|
|
|
function callBoom() {
|
|
boom();
|
|
}
|
|
|
|
function boom() {
|
|
throw new Error("boom");
|
|
}
|