| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8b34918 commit eba2dc5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,3 +33,17 @@ const { Worker } = require('worker_threads'); | |||
| 33 | 33 | new Worker(__filename, { execArgv: ['--redirect-warnings'] }); | |
| 34 | 34 | }, expectedErr); | |
| 35 | 35 | } | |
| 36 | + | ||
| 37 | + { | ||
| 38 | + const expectedErr = { | ||
| 39 | + code: 'ERR_WORKER_INVALID_EXEC_ARGV', | ||
| 40 | + name: 'Error' | ||
| 41 | + }; | ||
| 42 | + assert.throws(() => { | ||
| 43 | + new Worker(__filename, { | ||
| 44 | + env: { | ||
| 45 | + NODE_OPTIONS: '--nonexistent-options' | ||
| 46 | + } | ||
| 47 | + }); | ||
| 48 | + }, expectedErr); | ||
| 49 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments