Files
ValueScript/inputs/passing/copyCounting/exception.ts
2023-07-01 10:03:32 +10:00

19 lines
274 B
TypeScript

//! test_output(0)
/// <reference path="../../../concept-code/vs.d.ts" />
export default function () {
try {
throwCCEx();
} catch (e) {
return e.count;
}
}
function throwCCEx() {
while (true) {
const x = Debug.makeCopyCounter("x");
throw x;
}
}