summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-03-22 00:06:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-03-22 00:06:32 +0900
commit2b0baec32a6bfe72a18199cc864c43d07575b14b (patch)
treede2a2ff6760d394b2510d19134e64479e2e40328
parenta02acf2635d6a69c5c88ad5a67c9a8e17b2a951d (diff)
downloadmruby-2b0baec32a6bfe72a18199cc864c43d07575b14b.tar.gz
mruby-2b0baec32a6bfe72a18199cc864c43d07575b14b.zip
fixed silly class variable/constant confusion; #3138
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index fdc179a30..9a4b7d90a 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -708,7 +708,7 @@ static node*
new_op_asgn(parser_state *p, node *a, mrb_sym op, node *b)
{
if (op == mrb_intern_lit(p->mrb, "||") && (intptr_t)a->car == NODE_CVAR) {
- return new_rescue(p, a, list1(list3(list1(new_cvar(p, mrb_intern_lit(p->mrb, "NameError"))),
+ return new_rescue(p, a, list1(list3(list1(new_const(p, mrb_intern_lit(p->mrb, "NameError"))),
0, new_asgn(p, a, b))), NULL);
}
else {