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