Skip to content

_id2ref should raise RangeError rather than return nil for no object found #3324

@chrisseaton

Description

@chrisseaton

JRuby:

irb(main):001:0> ObjectSpace._id2ref 545556
=> nil

MRI:

irb(main):001:0> ObjectSpace._id2ref 545556
RangeError: 0x00000000085314 is not id value
    from (irb):1:in `_id2ref'
    from (irb):1
    from /Users/chrisseaton/.rbenv/versions/2.2.3/bin/irb:11:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions