| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6086a1d commit b5d59a7
1 file 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: /\bargs\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: /\benv\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: /\bpreopens\b/ }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments