Sha256: c8fb8905f11c485fe17b77dc5a8e0023fa344ad107463e0abc5a2580aae3826e
Contents?: true
Size: 310 Bytes
Versions: 99
Compression:
Stored size: 310 Bytes
Contents
module Ruby2JS class Converter # (defined? :@a) # (undefined? :@a) # NOTE: undefined is not produced directly by Parser handle :defined?, :undefined? do |var| op = (@ast.type == :defined? ? :"!==" : :===) put "typeof "; parse var; put " #{ op } 'undefined'" end end end
Version data entries
99 entries across 99 versions & 1 rubygems