aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-08-18 21:25:26 -0600
committerBen Burdette <bburdette@gmail.com>2021-08-18 21:25:26 -0600
commit4b5f9b35f06754aaf578a2d4b3d730949964ef05 (patch)
tree013f96301c928fcbe1ba8250a485e2140b7d8d84 /src/libcmd/command.cc
parent22720215366ada555f077ffb8eb810029ec93a04 (diff)
env to bindings
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index 59ab1f874..a32c4a24b 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -99,6 +99,8 @@ EvalCommand::EvalCommand()
// extern std::function<void(const Error & error, const std::map<std::string, Value *> & env)> debuggerHook;
extern std::function<void(const Error & error, const Env & env)> debuggerHook;
+
+
ref<EvalState> EvalCommand::getEvalState()
{
std::cout << " EvalCommand::getEvalState()" << startReplOnEvalErrors << std::endl;
@@ -107,7 +109,8 @@ ref<EvalState> EvalCommand::getEvalState()
if (startReplOnEvalErrors)
debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const Env & env) {
printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error.what());
- runRepl(evalState, env);
+ auto vm = mapEnvBindings(env);
+ runRepl(evalState, *vm);
};
}
return ref<EvalState>(evalState);