MCPcopy
hub / github.com/patriksimek/vm2 / lookupPaths

Method lookupPaths

lib/resolver.js:57–60  ·  view source on GitHub ↗
(mod, id)

Source from the content-addressed store, hash-verified

55 }
56
57 lookupPaths(mod, id) {
58 if (this.pathIsRelative(id)) return [mod.path || '.'];
59 return [...mod.paths, ...this.globalPaths];
60 }
61
62 getBuiltinModulesList(vm) {
63 if (this.builtins === undefined) return [];

Callers 1

constructorMethod · 0.80

Calls 1

pathIsRelativeMethod · 0.95

Tested by

no test coverage detected