| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a1bee94 commit 547fc86
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | 3 | const { | |
| 4 | - ArrayIsArray, | ||
| 5 | 4 | ArrayPrototypeForEach, | |
| 6 | 5 | ArrayPrototypeMap, | |
| 7 | 6 | ArrayPrototypePush, | |
@@ -122,11 +121,9 @@ class Worker extends EventEmitter { | |||
| 122 | 121 | constructor(filename, options = {}) { | |
| 123 | 122 | super(); | |
| 124 | 123 | debug(`[${threadId}] create new worker`, filename, options); | |
| 125 | - if (options.execArgv && !ArrayIsArray(options.execArgv)) { | ||
| 126 | - throw new ERR_INVALID_ARG_TYPE('options.execArgv', | ||
| 127 | - 'Array', | ||
| 128 | - options.execArgv); | ||
| 129 | - } | ||
| 124 | + if (options.execArgv) | ||
| 125 | + validateArray(options.execArgv, 'options.execArgv'); | ||
| 126 | + | ||
| 130 | 127 | let argv; | |
| 131 | 128 | if (options.argv) { | |
| 132 | 129 | validateArray(options.argv, 'options.argv'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments