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

10 lines
210 B
TypeScript

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