| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e331de2 commit dd705ad
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,3 +59,14 @@ const execOpts = { encoding: 'utf8', shell: true }; | |||
| 59 | 59 | execFile(process.execPath, [echoFixture, 0], { signal }, callback); | |
| 60 | 60 | ac.abort(); | |
| 61 | 61 | } | |
| 62 | + | ||
| 63 | + { | ||
| 64 | + // Verify that if something different than Abortcontroller.signal | ||
| 65 | + // is passed, ERR_INVALID_ARG_TYPE is thrown | ||
| 66 | + assert.throws(() => { | ||
| 67 | + const callback = common.mustNotCall(() => {}); | ||
| 68 | + | ||
| 69 | + execFile(process.execPath, [echoFixture, 0], { signal: 'hello' }, callback); | ||
| 70 | + }, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }); | ||
| 71 | + | ||
| 72 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments