Files
ValueScript/inputs/passing/exceptions/tryCatch.ts
2023-05-31 12:18:32 +10:00

10 lines
184 B
TypeScript

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