| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b353549 commit 8f580df
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,3 +76,11 @@ for (const e of fileInfo) { | |||
| 76 | 76 | })); | |
| 77 | 77 | process.nextTick(() => controller.abort()); | |
| 78 | 78 | } | |
| 79 | + { | ||
| 80 | + // Verify that if something different than Abortcontroller.signal | ||
| 81 | + // is passed, ERR_INVALID_ARG_TYPE is thrown | ||
| 82 | + assert.throws(() => { | ||
| 83 | + const callback = common.mustNotCall(() => {}); | ||
| 84 | + fs.readFile(fileInfo[0].name, { signal: 'hello' }, callback); | ||
| 85 | + }, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }); | ||
| 86 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments