diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:44:01 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | fb1eed3f7034c9219f83d086011296f8955bcddc (patch) | |
| tree | 2db014b4b0b29d5025d3568b999fb9baa173771f /include/ruby/internal/encoding/sprintf.h | |
| parent | 7460820fec8086d14c820d8e8f8042811105470f (diff) | |
[Prism] Implement defined? for PM_FOR_NODE
Ruby code:
```ruby
defined?(for i in [1,2] do; i; end)
```
Instructions:
```
"********* Ruby *************"
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(59,43)>
0000 putobject "expression" ( 59)[Li]
0002 leave
"********* PRISM *************"
== disasm: #<ISeq:<compiled>@<compiled>:58 (58,0)-(58,43)>
0000 putobject "expression" ( 58)[Li]
0002 leave
```
Related: ruby/prism#2188
Diffstat (limited to 'include/ruby/internal/encoding/sprintf.h')
0 files changed, 0 insertions, 0 deletions
