mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 15:38:06 -05:00
14 lines
237 B
TypeScript
14 lines
237 B
TypeScript
//! test_output(E: [Error{"message":"nested error"}])
|
|
|
|
export default function main() {
|
|
try {
|
|
try {
|
|
throw new Error("nested error");
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
} catch (error) {
|
|
throw [error];
|
|
}
|
|
}
|