| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 68687d3 commit 109ab78
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -244,6 +244,12 @@ async function doConcurrentAsyncAndSyncOps() { | |||
| 244 | 244 | } | |
| 245 | 245 | doConcurrentAsyncAndSyncOps().then(common.mustCall()); | |
| 246 | 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 | + | ||
| 247 | 253 | // Check that concurrent read() operations don't do weird things. | |
| 248 | 254 | async function doConcurrentAsyncOps() { | |
| 249 | 255 | const dir = await fs.promises.opendir(testDir); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments