Sha256: db6771bba1dc75c7d7121c71219b0e5009f7f032387199d5b5204e70e9d05b21
Contents?: true
Size: 301 Bytes
Versions: 8
Compression:
Stored size: 301 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? ? "!==" : "===") "typeof #{ parse var } #{ op } 'undefined'" end end end
Version data entries
8 entries across 8 versions & 1 rubygems