diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-19 10:24:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-19 10:24:17 +0000 |
commit | a1c76bc3de808ab3c5b36725369e952210ef8b64 (patch) | |
tree | 9c44e9098e76cec1cede0211d7a2b5239277bfc8 /eval_error.ci | |
parent | 09ce106ab3341030cc1893ca308532d196658508 (diff) | |
download | ruby-a1c76bc3de808ab3c5b36725369e952210ef8b64.tar.gz |
* eval_error.ci (get_backtrace): check the result more.
[ruby-dev:31261] [ruby-bugs-12398]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.ci')
-rw-r--r-- | eval_error.ci | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eval_error.ci b/eval_error.ci index f81ef8ffb5..2820c92df6 100644 --- a/eval_error.ci +++ b/eval_error.ci @@ -66,6 +66,8 @@ error_pos(void) } } +VALUE rb_check_backtrace(VALUE); + static VALUE get_backtrace(VALUE info) { @@ -74,7 +76,7 @@ get_backtrace(VALUE info) info = rb_funcall(info, rb_intern("backtrace"), 0); if (NIL_P(info)) return Qnil; - return rb_check_array_type(info); + return rb_check_backtrace(info); } static void |