Sha256: 073e43a24f97152a3e1b928fab69fe49456370b3dbe444d542b28f6517b61669
Contents?: true
Size: 909 Bytes
Versions: 15
Compression:
Stored size: 909 Bytes
Contents
require 'opal/nodes' class Opal::Nodes::CallNode # Rubyspec uses this call to load in language specific features at runtime. # We can't do this at runtime, so handle it during compilation add_special :language_version do if scope.top? lang_type = arglist[2][1] target = "ruby/language/versions/#{lang_type}_1.9" if File.exist?(target) compiler.requires << target end push fragment("nil") end end add_special :not_supported_on do unless arglist.flatten.include? :opal compile_default! end end add_special :not_compliant_on do unless arglist.flatten.include? :opal compile_default! end end add_special :platform_is_not do unless arglist.flatten.include? :opal compile_default! end end add_special :platform_is do if arglist.flatten.include? :opal compile_default! end end end
Version data entries
15 entries across 15 versions & 1 rubygems