diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:49:29 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | a9a22b9f2d3200cb55938a0eaf8d2c42ea05c7c9 (patch) | |
| tree | 222662dc2719645a946b203fbd8d1fe27e729d9e /include/ruby | |
| parent | b40fc4f0a7f9aafb1d9cf2079d89f0a00047c47b (diff) | |
[Prism] Implement defined? for PM_MATCH_REQUIRED_NODE
Ruby code:
```ruby
defined?(1 => 1)
```
Instructions:
```
"********* Ruby *************"
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(59,16)>
0000 putobject "expression" ( 59)[Li]
0002 leave
"********* PRISM *************"
== disasm: #<ISeq:<compiled>@<compiled>:58 (58,0)-(58,16)>
0000 putobject "expression" ( 58)[Li]
0002 leave
```
Related: ruby/prism#2188
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
