Skip to content

Commit 1ee8cd9

Browse files
committed
as Error; gitignore
1 parent ce23a5e commit 1ee8cd9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
no-issue-mac
2+
no-issue-linux
3+
repro-win.exe

main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
22
if (import.meta.main) {
3-
const message =
4-
"this will not be logged if compiled\nfor windows on deno v2.1.5";
5-
console.log(message as string);
3+
try {
4+
throw new Error("this will not be logged if compiled\nfor windows on deno v2.1.5");
5+
} catch (err){
6+
console.error(err as Error);
7+
}
68
}

0 commit comments

Comments
 (0)