aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 632d025e..44038ff9 100644
--- a/debug.c
+++ b/debug.c
@@ -5606,6 +5606,12 @@ do_eval(CMDARG *arg, int cmd ATTRIBUTE_UNUSED)
if (ret != 0) {
pop_context(); /* switch to prev context */
free_context(ctxt, false /* keep_globals */);
+
+ /* Remove @eval from FUNCTAB. */
+ NODE *s = make_string("@eval", 5);
+ (void) assoc_remove(func_table, s);
+ unref(s);
+
return false;
}