()
| 183 | doAsyncIterBreakTest().then(common.mustCall()); |
| 184 | |
| 185 | async function doAsyncIterReturnTest() { |
| 186 | const dir = await fs.promises.opendir(testDir); |
| 187 | await (async function() { |
| 188 | for await (const dirent of dir) { |
| 189 | return; |
| 190 | } |
| 191 | })(); |
| 192 | |
| 193 | await assert.rejects(dir.read(), dirclosedError); |
| 194 | } |
| 195 | doAsyncIterReturnTest().then(common.mustCall()); |
| 196 | |
| 197 | async function doAsyncIterThrowTest() { |
no test coverage detected
searching dependent graphs…