File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 1- import { ensureDirSync } from "@std/fs" ;
1+ // import { ensureDirSync } from "@std/fs";
22import { homedir } from "node:os" ;
3- import * as path from "@std/path" ;
3+ // import * as path from "@std/path";
44import { delay } from "@std/async" ;
55
66export async function denoCompileWinError ( ) {
77 await delay ( 1 ) ;
88 const home = homedir ( ) ;
9- const whereTheProblemsAre = path . join ( home , "problematic" ) ;
10-
11- const w = new Worker ( import . meta. resolve ( "src/worker.ts" ) , {
12- type : "module" ,
13- } ) ;
14-
15- try {
16- ensureDirSync ( whereTheProblemsAre ) ;
17-
18- throw new Error (
19- "this will not be logged if compiled\nfor windows on deno v2.1.5" ,
20- ) ;
21- } catch ( err ) {
22- console . error ( err as Error ) ;
9+ if ( home ) {
10+ console . log ( `This will not be printed when compiled for windows` ) ;
2311 }
24-
25- w . postMessage ( "worker I am trapped in a computer please elp" ) ;
2612}
You can’t perform that action at this time.
0 commit comments