class Opal::Nodes::TopNode

def compile_method_stubs

def compile_method_stubs
  if compiler.method_missing?
    calls = compiler.method_calls
    stubs = calls.to_a.map(&:to_s).join(',')
    line "Opal.add_stubs('#{stubs}');" unless stubs.empty?
  end
end