diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 11:03:28 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | b5d3d61130437de1434cf1a98048bf9d40e7908b (patch) | |
| tree | 8aea8d51c5f4831ee8255ccbdc2e8bf241d262fd /test/ruby/test_rubyvm.rb | |
| parent | d2000e0e6c3b7538e7bec51af8d5a128e8acf7ab (diff) | |
[Prism] Implement defined? for PM_SINGLETON_CLASS_NODE
Ruby code:
```ruby
defined?(class << self; end)
```
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_rubyvm.rb')
0 files changed, 0 insertions, 0 deletions
