lib/ruby2js/converter/undef.rb in ruby2js-1.6.0 vs lib/ruby2js/converter/undef.rb in ruby2js-1.7.0
- old
+ new
@@ -4,9 +4,10 @@
# (undef
# (sym :foo)
# (sym :bar))
handle :undef do |*syms|
- syms.map {|sym| "delete #{sym.children.last}"}.join @sep
+ "delete " + syms.
+ map {|sym| sym.type == :sym ? sym.children.last : parse(sym)}.join(@sep)
end
end
end