MCPcopy Create free account
hub / github.com/nodejs/node / _get_source_path

Method _get_source_path

deps/v8/test/mjsunit/testcfg.py:138–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 return self._env
137
138 def _get_source_path(self):
139 # Try .js first, and fall back to .mjs.
140 # TODO(v8:9406): clean this up by never separating the path from
141 # the extension in the first place.
142 js_file = self.suite.root / self.path_js
143 if js_file.exists():
144 return js_file
145 return self.suite.root / self.path_mjs
146
147
148class TestCombiner(testsuite.TestCombiner):

Callers 1

__init__Method · 0.95

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected