We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce23a5e commit 1ee8cd9Copy full SHA for 1ee8cd9
.gitignore
@@ -0,0 +1,3 @@
1
+no-issue-mac
2
+no-issue-linux
3
+repro-win.exe
main.ts
@@ -1,6 +1,8 @@
// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
if (import.meta.main) {
- const message =
4
- "this will not be logged if compiled\nfor windows on deno v2.1.5";
5
- console.log(message as string);
+ try {
+ throw new Error("this will not be logged if compiled\nfor windows on deno v2.1.5");
+ } catch (err){
6
+ console.error(err as Error);
7
+ }
8
}
0 commit comments