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