Project

General

Profile

Actions

Backport #8540

closed

Ruby crashes when sending "attr="

Added by woodbridge (Justin Woodbridge) almost 11 years ago. Updated almost 11 years ago.


Description

Ruby crashes when trying to run: obj.send "attr=" where attr= is a method defined by attr_accessor. Only happens when no argument is provided.

Expected: wrong number of arguments (0 for 1) (ArgumentError)
Actual: crashes

Code sample and crash logs: https://gist.github.com/woodbridge/5805212 .

Ruby Versions: 2.0.0-p0, 2.0.0-p195, and rev 4ff3b.
Systems: Mac OS X 10.8.2 (x86_64)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0