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

10 lines
119 B
TypeScript

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