diff options
| author | eileencodes <eileencodes@gmail.com> | 2024-01-17 10:12:49 -0500 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-17 13:08:49 -0800 |
| commit | 54b8330e45b718fc33cd391d6f0ed6cb67ee73c3 (patch) | |
| tree | fcfd5325de8556707df602e08f6cdd0c24311919 /include/ruby/memory_view.h | |
| parent | 3c9dc2f806af09005d39b4d8ffbf260485b248e2 (diff) | |
[Prism] Implement defined? for PM_CONSTANT_PATH_OR_WRITE_NODE
Ruby code:
```ruby
defined?(Prism::CPOrWN ||= 1)
```
Instructions:
```
"********* Ruby *************"
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(59,58)>
0000 putobject "assignment" ( 59)[Li]
0002 leave
"********* PRISM *************"
== disasm: #<ISeq:<compiled>@<compiled>:58 (58,0)-(58,58)>
0000 putobject "assignment" ( 58)[Li]
0002 leave
```
Related: ruby/prism#2188
Diffstat (limited to 'include/ruby/memory_view.h')
0 files changed, 0 insertions, 0 deletions
