lib/opal/nodes/args/mlhsarg.rb in opal-0.10.6 vs lib/opal/nodes/args/mlhsarg.rb in opal-0.11.0.rc1

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true require 'opal/nodes/base' module Opal module Nodes # A node responsible for extracting a @@ -54,18 +55,18 @@ result = ["$mlhs_of"] children.each do |child| case child.type when :arg - result << child[1] + result << child.children[0] when :mlhs result << 'mlhs' end end result.join("_") else - @sexp[1].to_s + @sexp.children[0].to_s end end end def inline_args