Skip to content

IRReturnJump when returning from a proc returned by a lambda #6350

@eregon

Description

@eregon

Environment Information

Provide at least:

  • JRuby version: jruby 9.2.13.0 (2.5.7)

Expected Behavior

$ ruby -e 'b=-> { Proc.new { return 42 }; }.call; p b; p b.call'
#<Proc:0x00005584560614b0 -e:1>

Actual Behavior

$ jruby -e 'b=-> { Proc.new { return 42 }; }.call; p b; p b.call'
#<Proc:0xeafc191@-e:1>
Unhandled Java exception: IRReturnJump:<Static Type[1957502751]: block []
  Static Type[1780132728]: local [b=#<Proc:0xeafc191@-e:1>]:42>
org.jruby.ir.runtime.IRReturnJump: null

Might relate to #1134.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions