diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:42:22 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-17 17:21:29 -0500 |
| commit | 7460820fec8086d14c820d8e8f8042811105470f (patch) | |
| tree | 7290b77ba2552e9c2533f40904fc337d375604f0 /test/ruby/test_rubyvm.rb | |
| parent | 30e7dbb78de4d4690b29b996424c7e7f4400b853 (diff) | |
[Prism] Implement defined? for PM_DEF_NODE
Ruby code:
```ruby
defined?(def prism_test_def_node; 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 'test/ruby/test_rubyvm.rb')
0 files changed, 0 insertions, 0 deletions
