lib/opal/nodes/args/mlhsarg.rb in opal-0.10.0.beta3 vs lib/opal/nodes/args/mlhsarg.rb in opal-0.10.0.beta4
- old
+ new
@@ -37,12 +37,10 @@
line "if (#{var_name} == null) {"
line " #{var_name} = nil;"
line "}"
- line "if (!#{var_name}.$$is_array) {"
- line " #{var_name} = [#{var_name}];"
- line "}"
+ line "#{var_name} = Opal.to_ary(#{var_name});"
scope.with_inline_args([]) do
scope.in_mlhs do
push process(args_sexp)
end