Project

General

Profile

« Previous | Next » 

Revision e1bae2c6

Added by eileencodes (Eileen Uchitelle) almost 2 years ago

[Prism] Implement defined? for PM_INDEX_OR_WRITE_NODE

Ruby code:

defined?([0][0] ||= 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