mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (setup_exception): let SystemStackError#backtrace return an
single element array instead of string itself. [ruby-core:30196] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3cd67ce505
commit
0ee8d28e9e
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun May 16 22:17:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* eval.c (setup_exception): let SystemStackError#backtrace return an
|
||||
single element array instead of string itself. [ruby-core:30196]
|
||||
|
||||
Sun May 16 21:51:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* parse.y (parser_read_escape, parser_tokadd_escape): allow a hex or
|
||||
|
|
1
eval.c
1
eval.c
|
@ -380,6 +380,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg)
|
|||
if (file && !NIL_P(mesg)) {
|
||||
if (mesg == sysstack_error) {
|
||||
at = rb_enc_sprintf(rb_usascii_encoding(), "%s:%d", file, line);
|
||||
at = rb_ary_new3(1, at);
|
||||
rb_iv_set(mesg, "bt", at);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue