mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04: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|
|
compiled = @expressions.map do |node|
|
||||||
o = options.dup
|
o = options.dup
|
||||||
returns = o.delete(:return)
|
returns = o.delete(:return)
|
||||||
code = node.compile(o)
|
|
||||||
if last?(node) && returns && !node.statement_only?
|
if last?(node) && returns && !node.statement_only?
|
||||||
if node.statement?
|
if node.statement?
|
||||||
node.compile(o.merge(:return => true))
|
node.compile(o.merge(:return => true))
|
||||||
|
|||||||
Reference in New Issue
Block a user