aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index c92a5982..9cf817ac 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4090,6 +4090,9 @@ do_typeof(int nargs)
NODE **lhs = assoc_lookup(dbg, sub);
unref(*lhs);
*lhs = make_string(arg->array_funcs->name, strlen(arg->array_funcs->name));
+ if (dbg->astore != NULL)
+ (*dbg->astore)(dbg, sub);
+ unref(sub);
}
break;
case Node_val:
@@ -4125,6 +4128,9 @@ do_typeof(int nargs)
NODE **lhs = assoc_lookup(dbg, sub);
unref(*lhs);
*lhs = make_string(s, strlen(s));
+ if (dbg->astore != NULL)
+ (*dbg->astore)(dbg, sub);
+ unref(sub);
}
break;
case Node_var_new: