added some execution test

This commit is contained in:
Jeremy Ashkenas
2009-12-24 00:12:07 -08:00
parent 417753bd62
commit b743e3219a
12 changed files with 110 additions and 23 deletions

View File

@@ -507,7 +507,7 @@ module CoffeeScript
return_result = "\n#{o[:indent]}#{return_result}"
if @filter
body = CallNode.new(ValueNode.new(LiteralNode.new(rvar), [AccessorNode.new('push')]), [@body])
body = IfNode.new(@filter, body, nil, :statement)
body = IfNode.new(@filter, body, nil, :statement => true)
save_result = ''
suffix = ''
end