mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
logic error in Expressions was causing over-compilation by a factor of the depth of the tree
This commit is contained in:
@@ -96,7 +96,6 @@ module CoffeeScript
|
||||
compiled = @expressions.map do |node|
|
||||
o = options.dup
|
||||
returns = o.delete(:return)
|
||||
code = node.compile(o)
|
||||
if last?(node) && returns && !node.statement_only?
|
||||
if node.statement?
|
||||
node.compile(o.merge(:return => true))
|
||||
|
||||
Reference in New Issue
Block a user