Files
ValueScript/inputs/passing/exceptions/tryCatchRethrow.ts
2023-05-31 12:56:20 +10:00

10 lines
211 B
TypeScript

//! test_output(E: ["rethrow",Error{"message":"Something went wrong"}])
export default function () {
try {
throw new Error("Something went wrong");
} catch (error) {
throw ["rethrow", error];
}
}