Project

General

Profile

« Previous | Next » 

Revision 4258db79

Added by ko1 (Koichi Sasada) over 13 years ago

  • vm_eval.c (rb_f_caller): caller() method accepts second optional
    argument n' which specify how many frames should return. For example, caller(0, 1)' returns only one frame information
    which calls caller() method. If there are less than n frame
    information, then all frame information are returned. If n is 0,
    then always return [].
    This fix is part of [ruby-dev:42345] [Ruby 1.9-Feature#3917].
    However, performance and features are not enough.
    RDoc is also not available.
  • test/ruby/test_backtrace.rb: add a test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e