()
| 235 | |
| 236 | // Check that when passing a string instead of function - throw an exception |
| 237 | async function doAsyncIterInvalidCallbackTest() { |
| 238 | const dir = await fs.promises.opendir(testDir); |
| 239 | assert.throws(() => dir.close('not function'), invalidCallbackObj); |
| 240 | dir.close(); |
| 241 | } |
| 242 | doAsyncIterInvalidCallbackTest().then(common.mustCall()); |
| 243 | |
| 244 | // Check first call to close() - should not report an error. |
no test coverage detected
searching dependent graphs…