Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Kernel#caller issue with caller_locations #2979

Closed
bjfish opened this issue May 23, 2015 · 0 comments
Closed

[Truffle] Kernel#caller issue with caller_locations #2979

bjfish opened this issue May 23, 2015 · 0 comments
Assignees
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented May 23, 2015

This is found in sinatra.
Example:

class Example
    def caller_locations( one )
      puts "Don't call me"
    end

    def print_caller
      puts caller(1)
    end

end

Example.new.print_caller

Expected

ruby callerloc.rb 
callerloc.rb:12:in `<main>'

Actual

~/Documents/jruby/bin/jruby -X+T callerloc.rb 
Don't call me
core:/core/kernel.rb:27:in `method_missing': undefined method `map' for NilClass (NoMethodError)
    from core:/core/kernel.rb:27:in `caller'
    from callerloc.rb:7:in `print_caller'
    from callerloc.rb:12:in `<main>'
@eregon eregon closed this as completed in 0667de4 May 23, 2015
@eregon eregon added the truffle label May 23, 2015
@eregon eregon added this to the truffle-dev milestone May 23, 2015
@eregon eregon self-assigned this May 23, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants