1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Merge branch 'debug-exploratory-PR' into debuggerHook-eval-arg

This commit is contained in:
Ben Burdette 2022-05-19 11:07:18 -06:00
commit f9cdb6af8d
6 changed files with 69 additions and 57 deletions

View file

@ -137,9 +137,10 @@ ref<EvalState> EvalCommand::getEvalState()
if (error)
printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error->what());
if (expr.staticEnv) {
auto vm = mapStaticEnvBindings(evalState.symbols, *expr.staticEnv.get(), env);
runRepl(*const_cast<EvalState*>(&evalState), *vm);
auto se = evalState->getStaticEnv(expr);
if (se) {
auto vm = mapStaticEnvBindings(evalState->symbols, *se.get(), env);
runRepl(evalState, *vm);
}
};
}