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

Function ignoreExpectedError

test/parallel/test-fs-negative-zero.js:15–21  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13);
14
15function ignoreExpectedError(fn) {
16 try {
17 fn();
18 } catch {
19 // Ignore expected file system errors from the missing path.
20 }
21}
22
23const fd = fs.openSync(process.execPath, -0);
24fs.closeSync(fd);

Callers 1

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…