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

Method _get_source_path

deps/v8/test/debugger/testcfg.py:66–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 return ['--enable-inspector', '--allow-natives-syntax']
65
66 def _get_source_path(self):
67 # Try .js first, and fall back to .mjs.
68 # TODO(v8:9406): clean this up by never separating the path from
69 # the extension in the first place.
70 js_file = self.suite.root / self.path_js
71 if js_file.exists():
72 return js_file
73 return self.suite.root / self.path_mjs

Callers 1

_parse_source_filesMethod · 0.95

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected