class Opal::Nodes::TopNode

def closing

def closing
  if compiler.requirable?
    line "};\n"
    if compiler.load?
      # Opal.load normalizes the path, so that we can't
      # require absolute paths from CLI. For other cases
      # we can expect the module names to be normalized
      # already.
      line "Opal.load_normalized(#{module_name});"
    end
  elsif compiler.eval?
    line "})(Opal, self);"
  else
    line "});\n"
  end
end