()
| 251 | |
| 252 | // Check that readSync() and closeSync() during read() throw exceptions |
| 253 | async function doConcurrentAsyncAndSyncOps() { |
| 254 | const dir = await fs.promises.opendir(testDir); |
| 255 | const promise = dir.read(); |
| 256 | |
| 257 | assert.throws(() => dir.closeSync(), dirconcurrentError); |
| 258 | assert.throws(() => dir.readSync(), dirconcurrentError); |
| 259 | |
| 260 | await promise; |
| 261 | dir.closeSync(); |
| 262 | } |
| 263 | doConcurrentAsyncAndSyncOps().then(common.mustCall()); |
| 264 | |
| 265 | // Check read throw exceptions on invalid callback |
no test coverage detected
searching dependent graphs…