diff options
| author | eileencodes <eileencodes@gmail.com> | 2023-12-12 14:24:00 -0500 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-12-13 08:11:21 -0500 |
| commit | 1ad991c54d7d890527050a54899265da21a677c2 (patch) | |
| tree | 7f09e8847bae6ece72acbf559c601f4649fad830 /spec/ruby/core/array | |
| parent | 36ca99b343ee8847beb4b7e0be112f75af64109f (diff) | |
[PRISM] Fix attrset edge cases
In some cases code may look like an attrset ID but should actually
return the value of the method, not the passed values.
In ruby/prism#2051 a flag was added when we have a attribute write call.
I used this flag to add the proper instructions when we have a real
attrset instead of using `rb_is_attrset_id` which was kind of hacky
anyway.
The value that should be returned in the newly added test is 42, not 2.
Previously the changes we had made returned 2.
Related to ruby/prism#1715
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions
