class Opal::Nodes::AttrAssignNode

s(:recv, :mid=, s(:arglist, rhs))
recv.mid = rhs

def default_compile

def default_compile
  # Skip, for now, if the method has square brackets: []=
  return super if meth.to_s !~ /#{REGEXP_START}\w+=#{REGEXP_END}/
  with_temp do |args_tmp|
    with_temp do |recv_tmp|
      args = expr(arglist)
      mid = mid_to_jsid meth.to_s
      push "((#{args_tmp} = [", args, "]), "+
           "#{recv_tmp} = ", recv(recv_sexp), ", ",
           recv_tmp, mid, ".apply(#{recv_tmp}, #{args_tmp}), "+
           "#{args_tmp}[#{args_tmp}.length-1])"
    end
  end
end