diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 1 |
2 files changed, 6 insertions, 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 @@ -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 { |