mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix the exception when CPDEBUG
This commit is contained in:
parent
801a11d0ab
commit
afab8122c3
1 changed files with 4 additions and 1 deletions
|
@ -391,7 +391,10 @@ append_compile_error(const rb_iseq_t *iseq, int line, const char *fmt, ...)
|
||||||
else if (!err_info) {
|
else if (!err_info) {
|
||||||
RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->err_info, Qtrue);
|
RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->err_info, Qtrue);
|
||||||
}
|
}
|
||||||
if (compile_debug) rb_exc_fatal(err);
|
if (compile_debug) {
|
||||||
|
if (SPECIAL_CONST_P(err)) err = rb_eSyntaxError;
|
||||||
|
rb_exc_fatal(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue