We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68687d3 commit 109ab78Copy full SHA for 109ab78
test/parallel/test-fs-opendir.js
@@ -244,6 +244,12 @@ async function doConcurrentAsyncAndSyncOps() {
244
}
245
doConcurrentAsyncAndSyncOps().then(common.mustCall());
246
247
+// Check read throw exceptions on invalid callback
248
+{
249
+ const dir = fs.opendirSync(testDir);
250
+ assert.throws(() => dir.read('INVALID_CALLBACK'), /ERR_INVALID_CALLBACK/);
251
+}
252
+
253
// Check that concurrent read() operations don't do weird things.
254
async function doConcurrentAsyncOps() {
255
const dir = await fs.promises.opendir(testDir);
0 commit comments