diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-16 15:10:39 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 10:17:59 -0500 |
| commit | 0c814092ee1268562b4ba42973ea754e0dcf1bd0 (patch) | |
| tree | 7b1ef1d7570f85e4cfff6b044bd827ee02ee5772 /test/ruby/test_method_cache.rb | |
| parent | 3a7ad808b135bace484038e4ba0549796d98d872 (diff) | |
[Prism] Implement defined for PM_NEXT_NODE
Ruby code:
```ruby
defined?(next)
```
Instructions
```
"********* Ruby *************"
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(59,15)>
0000 putobject "expression" ( 59)[Li]
0002 leave
"********* PRISM *************"
== disasm: #<ISeq:<compiled>@<compiled>:58 (58,0)-(58,15)>
0000 putobject "expression" ( 58)[Li]
0002 leave
```
Related: ruby/prism#2188
Diffstat (limited to 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
