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

Function assertPathExists

deps/v8/test/mjsunit/tools/profile.mjs:35–42  ·  view source on GitHub ↗
(root, path, opt_message)

Source from the content-addressed store, hash-verified

33
34
35function assertPathExists(root, path, opt_message) {
36 var message = opt_message ? ' (' + opt_message + ')' : '';
37 assertNotNull(root.descendToChild(path, function(node, pos) {
38 assertNotNull(node,
39 stackToString(path.slice(0, pos)) + ' has no child ' +
40 path[pos] + message);
41 }), opt_message);
42};
43
44
45function assertNoPathExists(root, path, opt_message) {

Callers 1

profile.mjsFile · 0.85

Calls 4

assertNotNullFunction · 0.85
stackToStringFunction · 0.85
descendToChildMethod · 0.80
sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…