| 245 | } |
| 246 | |
| 247 | void ValdiStandaloneRuntime::doEvalScript(const StringBox& scriptPath, const std::vector<StringBox>& jsArguments) { |
| 248 | setupJsRuntime(jsArguments); |
| 249 | |
| 250 | auto result = _runtime->getJavaScriptRuntime()->evalModuleSync(scriptPath, _shouldWaitForHotReload); |
| 251 | if (!result) { |
| 252 | VALDI_ERROR(ConsoleLogger::getLogger(), "{}", result.error()); |
| 253 | if (!_shouldWaitForHotReload) { |
| 254 | _mainQueue->exit(1); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void ValdiStandaloneRuntime::waitForHotReloadAndEvalScript(const StringBox& scriptPath, |
| 260 | const std::vector<StringBox>& jsArguments) { |
nothing calls this directly
no test coverage detected