| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4ee5665 commit ff47915
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,13 +25,11 @@ class WASI { | |||
| 25 | 25 | if (options === null || typeof options !== 'object') | |
| 26 | 26 | throw new ERR_INVALID_ARG_TYPE('options', 'object', options); | |
| 27 | 27 | ||
| 28 | - // eslint-disable-next-line prefer-const | ||
| 29 | - let { args, env, preopens } = options; | ||
| 28 | + const { env, preopens } = options; | ||
| 29 | + let { args = [] } = options; | ||
| 30 | 30 | ||
| 31 | 31 | if (ArrayIsArray(args)) | |
| 32 | 32 | args = ArrayPrototypeMap(args, (arg) => { return String(arg); }); | |
| 33 | - else if (args === undefined) | ||
| 34 | - args = []; | ||
| 35 | 33 | else | |
| 36 | 34 | throw new ERR_INVALID_ARG_TYPE('options.args', 'Array', args); | |
| 37 | 35 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments