Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Kernel#caller from arglist is missing a stack frame #1376
The spec below (from promise.rb's suite) failed because it asserted the exact position of a stack frame within the backtrace. This broke because, when calling
Jan 2, 2014
Looks like this is now working just as expected.
require 'pp' def foo(backtrace = caller) pp backtrace end def bar(bactrace = nil) backtrace ||= caller pp backtrace end def baz foo bar end baz