File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
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";
4- import { delay } from "@std/async" ;
3+ import * as path from "@std/path" ;
54
6- export async function denoCompileWinError ( ) {
7- await delay ( 1 ) ;
5+ export function denoCompileWinError ( ) {
86 const home = homedir ( ) ;
9- if ( home ) {
10- console . log ( `This will not be printed when compiled for windows` ) ;
7+ const whereTheProblemsAre = path . join ( home , "problematic" ) ;
8+
9+ try {
10+ ensureDirSync ( whereTheProblemsAre ) ;
11+
12+ throw new Error (
13+ "this will not be logged if compiled\nfor windows on deno v2.1.5" ,
14+ ) ;
15+ } catch ( err ) {
16+ console . error ( err as Error ) ;
1117 }
1218}
You can’t perform that action at this time.
0 commit comments