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

Function assertDir

test/parallel/test-fs-opendir.js:29–34  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

27});
28
29function assertDir(dir) {
30 assert(dir instanceof fs.Dir);
31 assert.throws(() => dir.constructor.prototype.path, {
32 code: 'ERR_INVALID_THIS',
33 });
34}
35
36function assertDirent(dirent) {
37 assert(dirent instanceof fs.Dirent);

Callers 2

test-fs-opendir.jsFile · 0.85
doPromiseTestFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…