summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--eval.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 228be9db32..004f9f010a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 23 17:29:41 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* common.mk (capi): uses a timestamp file to get rid of
diff --git a/eval.c b/eval.c
index 99f28dc8e6..95d1b8c860 100644
--- a/eval.c
+++ b/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 {