1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: flush debug output

* parse.y (parser_compile_error): flush debug output before
  compile error message, to keep the order.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-07-13 07:00:16 +00:00
parent d15cc7a6a3
commit 52e8254b54

View file

@ -11057,6 +11057,7 @@ parser_compile_error(struct parser_params *parser, const char *fmt, ...)
{
va_list ap;
rb_io_flush(parser->debug_output);
parser->error_p = 1;
va_start(ap, fmt);
parser->error_buffer =