Skip to content

[2.1] Comparable#== needs a recursion guard for missing <=> #1111

@headius

Description

@headius

Without a recursion guard, Comparable#== can blow the stack when included into a class that has no <=> defined.

See #1099 and https://bugs.ruby-lang.org/issues/9003 for details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions