diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:45:48 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | a2092ef2070091caa42dfaa304ecc5a16dc1694a (patch) | |
| tree | 7a4cc77d0c6b2252f724bcdaef1904f7fbd8757d /include/ruby/internal/encoding/sprintf.h | |
| parent | fb1eed3f7034c9219f83d086011296f8955bcddc (diff) | |
[Prism] Implement defined? for PM_IF_NODE
Ruby code:
```ruby
defined?(if true; 1; 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
