MCPcopy Index your code
hub / github.com/nodejs/node / doAsyncIterReturnTest

Function doAsyncIterReturnTest

test/parallel/test-fs-opendir.js:185–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183doAsyncIterBreakTest().then(common.mustCall());
184
185async 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}
195doAsyncIterReturnTest().then(common.mustCall());
196
197async function doAsyncIterThrowTest() {

Callers 1

test-fs-opendir.jsFile · 0.85

Calls 2

opendirMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…