(self)
| 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 | |
| 148 | class TestCombiner(testsuite.TestCombiner): |