()
| 59 | } |
| 60 | |
| 61 | async function validateWrongSignalParam() { |
| 62 | // Verify that if something different than Abortcontroller.signal |
| 63 | // is passed, ERR_INVALID_ARG_TYPE is thrown |
| 64 | |
| 65 | await assert.rejects(async () => { |
| 66 | const callback = common.mustNotCall(); |
| 67 | await readFile(fn, { signal: 'hello' }, callback); |
| 68 | }, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }); |
| 69 | |
| 70 | } |
| 71 | |
| 72 | async function validateZeroByteLiar() { |
| 73 | const originalFStat = fsBinding.fstat; |
no test coverage detected