summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 837fe1c706e..3de2f57f03e 100644
--- a/eval.c
+++ b/eval.c
@@ -3590,6 +3590,9 @@ assign(self, lhs, val, check)
break;
case NODE_CVDECL:
+ rb_cvar_declare(ruby_cbase, lhs->nd_vid, val);
+ break;
+
case NODE_CVASGN:
rb_cvar_set(ruby_cbase, lhs->nd_vid, val);
break;