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

Function isNativeUrl

lib/internal/debugger/inspect_repl.js:124–129  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

122
123const { builtinIds } = internalBinding('builtins');
124function isNativeUrl(url) {
125 url = SideEffectFreeRegExpPrototypeSymbolReplace(/\.js$/, url, '');
126
127 return StringPrototypeStartsWith(url, 'node:internal/') ||
128 ArrayPrototypeIncludes(builtinIds, url);
129}
130
131function getRelativePath(filenameOrURL) {
132 const dir = StringPrototypeSlice(Path.join(Path.resolve(), 'x'), 0, -1);

Callers 1

createReplFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…