Files
ValueScript/inputs/passing/exceptions/tryCatchRethrow.ts
2023-03-23 17:17:27 +11:00

10 lines
209 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];
}
}