class Opal::Nodes::Args::InitializeIterarg
This node is responsible for initializing a single required block arg
proc { |a| }
Procs don’t have arity checking and code like
proc { |a| }.call
must return nil
Public Instance Methods
compile()
click to toggle source
# File lib/opal/nodes/args/initialize_iterarg.rb, line 20 def compile push "if (#{name} == null) #{name} = nil" end