File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ new WASI({});
11
11
12
12
// If args is not an Array and not undefined, it should throw.
13
13
assert . throws ( ( ) => { new WASI ( { args : 'fhqwhgads' } ) ; } ,
14
- { code : 'ERR_INVALID_ARG_TYPE' } ) ;
14
+ { code : 'ERR_INVALID_ARG_TYPE' , message : / \b a r g s \b / } ) ;
15
15
16
16
// If env is not an Object and not undefined, it should throw.
17
17
assert . throws ( ( ) => { new WASI ( { env : 'fhqwhgads' } ) ; } ,
18
- { code : 'ERR_INVALID_ARG_TYPE' } ) ;
18
+ { code : 'ERR_INVALID_ARG_TYPE' , message : / \b e n v \b / } ) ;
19
19
20
20
// If preopens is not an Object and not undefined, it should throw.
21
21
assert . throws ( ( ) => { new WASI ( { preopens : 'fhqwhgads' } ) ; } ,
22
- { code : 'ERR_INVALID_ARG_TYPE' } ) ;
22
+ { code : 'ERR_INVALID_ARG_TYPE' , message : / \b p r e o p e n s \b / } ) ;
You can’t perform that action at this time.
0 commit comments