diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-16 16:11:24 -0500 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-17 13:08:49 -0800 |
| commit | f657fd150f46ab4d93344d34bcb663630d7f064a (patch) | |
| tree | 8bdcb481167ea908b57e5ce82d1e29311d5f50eb /test/ruby/test_array.rb | |
| parent | a6e924cf5f67368b49d5745f5cae22bc68ef21a1 (diff) | |
[Prism] Implement defined? for PM_CALL_AND_WRITE_NODE
Ruby code:
```ruby
defined?(PrismTestSubclass.test_call_and_write_node &&= 1)
```
Instructions:
```
"********* Ruby *************"
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(59,58)>
0000 putobject "assignment" ( 59)[Li]
0002 leave
"********* PRISM *************"
== disasm: #<ISeq:<compiled>@<compiled>:58 (58,0)-(58,58)>
0000 putobject "assignment" ( 58)[Li]
0002 leave
```
Related: ruby/prism#2188
Diffstat (limited to 'test/ruby/test_array.rb')
0 files changed, 0 insertions, 0 deletions
