File tree 3 files changed +5
-3
lines changed 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ export function ssr(ctx: CtxInit): Cmd {
373
373
selections,
374
374
} ) ;
375
375
} catch ( e ) {
376
- return e . toString ( ) ;
376
+ return String ( e ) ;
377
377
}
378
378
return null ;
379
379
} ,
@@ -1156,7 +1156,7 @@ export function viewMemoryLayout(ctx: CtxInit): Cmd {
1156
1156
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1157
1157
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1158
1158
<title>Document</title>
1159
- <style>
1159
+ <style>
1160
1160
* {
1161
1161
box-sizing: border-box;
1162
1162
}
Original file line number Diff line number Diff line change
1
+ import * as assert from "node:assert/strict" ;
1
2
import { readdir } from "fs/promises" ;
2
3
import * as path from "path" ;
3
4
@@ -30,6 +31,7 @@ class Suite {
30
31
await test . promise ;
31
32
ok ( ` ✔ ${ test . name } ` ) ;
32
33
} catch ( e ) {
34
+ assert . ok ( e instanceof Error ) ;
33
35
error ( ` ✖︎ ${ test . name } \n ${ e . stack } ` ) ;
34
36
failed += 1 ;
35
37
}
@@ -50,6 +52,7 @@ export class Context {
50
52
await ctx . run ( ) ;
51
53
ok ( `✔ ${ name } ` ) ;
52
54
} catch ( e ) {
55
+ assert . ok ( e instanceof Error ) ;
53
56
error ( `✖︎ ${ name } \n ${ e . stack } ` ) ;
54
57
throw e ;
55
58
}
Original file line number Diff line number Diff line change 12
12
"newLine" : " LF" ,
13
13
// These disables some enhancement type checking options
14
14
// to update typescript version without any code change.
15
- "useUnknownInCatchVariables" : false ,
16
15
"exactOptionalPropertyTypes" : false
17
16
},
18
17
"exclude" : [" node_modules" , " .vscode-test" ],
You can’t perform that action at this time.
0 commit comments