Skip to content

Commit 4c6a252

Browse files
committed
minimal, hopefully
1 parent afd170f commit 4c6a252

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

main.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
// import { denoCompileWinError } from "./src/deno-compile-win-error.ts";
2-
31
import { homedir } from "node:os";
42

53
if (import.meta.main) {
6-
console.log(homedir())
7-
// await denoCompileWinError();
4+
const home = homedir();
5+
6+
try {
7+
console.log("homedir:", home);
8+
throw new Error(
9+
"this will not be logged if compiled\nfor windows on deno v2.1.5",
10+
);
11+
} catch (err) {
12+
console.error(err as Error);
13+
}
814
}

src/deno-compile-win-error.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/worker.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)