aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-05-20 12:45:36 -0600
committerBen Burdette <bburdette@protonmail.com>2022-05-20 12:45:36 -0600
commit982c8a959b0a686c1c532429b206507c7641e083 (patch)
tree388669661d2dfd49aec9c7bbca7b26a7c998d626
parent357fb84dbaad0b056704915c6a43764cda63ee7f (diff)
remove special tryEval behavior
-rw-r--r--src/libexpr/primops.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index ff5ae8809..1727a276c 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -879,8 +879,6 @@ static RegisterPrimOp primop_floor({
static void prim_tryEval(EvalState & state, const PosIdx pos, Value * * args, Value & v)
{
auto attrs = state.buildBindings(2);
- auto saveDebuggerHook = debuggerHook;
- debuggerHook = nullptr;
try {
state.forceValue(*args[0], pos);
attrs.insert(state.sValue, args[0]);
@@ -889,7 +887,6 @@ static void prim_tryEval(EvalState & state, const PosIdx pos, Value * * args, Va
attrs.alloc(state.sValue).mkBool(false);
attrs.alloc("success").mkBool(false);
}
- debuggerHook = saveDebuggerHook;
v.mkAttrs(attrs);
}