Files
ValueScript/inputs/passing/exceptions/tryCatch.ts
Andrew Morris ba68ef697a Test exceptions
2023-03-23 15:48:33 +11:00

10 lines
183 B
TypeScript

// test_output! Error{"message":"Something went wrong"}
export default function () {
try {
throw new Error("Something went wrong");
} catch (error) {
return error;
}
}