diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:03:36 -0500 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-17 13:08:49 -0800 |
| commit | 7522e867ee1b77a303d294ef9fba26889c1e59dd (patch) | |
| tree | 47a82f95fa676ec8eea03b030221b77878468028 /ruby.c | |
| parent | 9c5391d7dc99fcc06fae1541f1f6fc0c2913c932 (diff) | |
[Prism] Implement defined? for PM_CALL_OR_WRITE_NODE
Ruby code:
```ruby
defined?(PrismTestSubclass.test_call_or_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 'ruby.c')
0 files changed, 0 insertions, 0 deletions
