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

10 lines
120 B
TypeScript

//! test_output(8)
export default function () {
try {
throw [3, 5];
} catch ([a, b]) {
return a + b;
}
}