File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change
1
+ Wed Aug 22 10:55:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
+
3
+ * eval.c (get_backtrace): check the result more.
4
+ [ruby-dev:31261] [ruby-bugs-12398]
5
+
1
6
Wed Aug 22 10:36:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
7
3
8
* bignum.c (rb_big_lshift, rb_big_rshift): separated functions
Original file line number Diff line number Diff line change @@ -488,14 +488,14 @@ static VALUE
488
488
exc_backtrace (exc )
489
489
VALUE exc ;
490
490
{
491
- ID bt = rb_intern ( "bt" ) ;
491
+ static ID bt ;
492
492
493
- if (!rb_ivar_defined ( exc , bt )) return Qnil ;
494
- return rb_ivar_get (exc , bt );
493
+ if (!bt ) bt = rb_intern ( "bt" ) ;
494
+ return rb_attr_get (exc , bt );
495
495
}
496
496
497
- static VALUE
498
- check_backtrace (bt )
497
+ VALUE
498
+ rb_check_backtrace (bt )
499
499
VALUE bt ;
500
500
{
501
501
long i ;
@@ -532,7 +532,7 @@ exc_set_backtrace(exc, bt)
532
532
VALUE exc ;
533
533
VALUE bt ;
534
534
{
535
- return rb_iv_set (exc , "bt" , check_backtrace (bt ));
535
+ return rb_iv_set (exc , "bt" , rb_check_backtrace (bt ));
536
536
}
537
537
538
538
/*
Original file line number Diff line number Diff line change @@ -1197,14 +1197,16 @@ error_pos()
1197
1197
}
1198
1198
}
1199
1199
1200
+ VALUE rb_check_backtrace (VALUE );
1201
+
1200
1202
static VALUE
1201
1203
get_backtrace (info )
1202
1204
VALUE info ;
1203
1205
{
1204
1206
if (NIL_P (info )) return Qnil ;
1205
1207
info = rb_funcall (info , rb_intern ("backtrace" ), 0 );
1206
1208
if (NIL_P (info )) return Qnil ;
1207
- return rb_check_array_type (info );
1209
+ return rb_check_backtrace (info );
1208
1210
}
1209
1211
1210
1212
static void
Original file line number Diff line number Diff line change 2
2
#define RUBY_RELEASE_DATE "2007-08-22"
3
3
#define RUBY_VERSION_CODE 186
4
4
#define RUBY_RELEASE_CODE 20070822
5
- #define RUBY_PATCHLEVEL 71
5
+ #define RUBY_PATCHLEVEL 72
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
You can’t perform that action at this time.
0 commit comments