mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
10 lines
209 B
TypeScript
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];
|
|
}
|
|
}
|