mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
parse.y: avoid using mrb_bug(); ref #5852
This commit is contained in:
@@ -4249,7 +4249,7 @@ backref_error(parser_state *p, node *n)
|
||||
yyerror_c(p, "can't set variable $", (char)intn(n->cdr));
|
||||
}
|
||||
else {
|
||||
mrb_bug(p->mrb, "Internal error in backref_error() : n=>car == %d", c);
|
||||
yyerror(p, "Internal error in backref_error()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10445,7 +10445,7 @@ backref_error(parser_state *p, node *n)
|
||||
yyerror_c(p, "can't set variable $", (char)intn(n->cdr));
|
||||
}
|
||||
else {
|
||||
mrb_bug(p->mrb, "Internal error in backref_error() : n=>car == %d", c);
|
||||
yyerror(p, "Internal error in backref_error()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user