lib/opal/nodes/node_with_args.rb in opal-0.11.0.rc1 vs lib/opal/nodes/node_with_args.rb in opal-0.11.0

- old
+ new

@@ -210,10 +210,10 @@ end # Returns an array of JS conditions for raising and argument # error caused by arity check def arity_checks - return @arity_checks if @arity_checks + return @arity_checks if defined?(@arity_checks) arity = args.children.size arity -= (opt_args.size) arity -= 1 if rest_arg