diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 11:00:08 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | d2000e0e6c3b7538e7bec51af8d5a128e8acf7ab (patch) | |
| tree | cdd6f1c198257f5ef2898751a6ad00b7c0f08f7b /test/ruby/test_method_cache.rb | |
| parent | 913772a08acb9ebf4ea91762ebcf5ccdb1d9732c (diff) | |
[Prism] Implement defined? for PM_RATIONAL_NODE
Ruby code:
```ruby
defined?(1.2r)
```
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 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
