Project

General

Profile

« Previous | Next » 

Revision b5d3d611

Added by eileencodes (Eileen Uchitelle) almost 2 years ago

[Prism] Implement defined? for PM_SINGLETON_CLASS_NODE

Ruby code:

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