1 2 3 4 5 6 7
if (Deno.exitCode != 0) { throw new Error("boom!"); } Deno.exitCode = 42; console.log("Deno.exitCode", Deno.exitCode);