class Opal::Nodes::OrNode
def compile_if
def compile_if helper :truthy with_temp do |tmp| push "if ($truthy(#{tmp} = ", expr(lhs), ')) {' indent { line tmp } line '} else {' indent { line expr(rhs) } line '}' end end
def compile_ternary
def compile_ternary helper :truthy with_temp do |tmp| push "($truthy(#{tmp} = ", expr(lhs), ") ? #{tmp} : ", expr(rhs), ')' end end