class Opal::Nodes::RescueModNode

def body

def body
  stmt? ? lhs : compiler.returns(lhs)
end

def compile

def compile
  push "try {", expr(body), " } catch ($err) { ", expr(rescue_val), " }"
  wrap '(function() {', '})()' unless stmt?
end

def rescue_val

def rescue_val
  stmt? ? rhs : compiler.returns(rhs)
end