mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
subtle call order bug was preventing variable declarations
This commit is contained in:
@@ -122,9 +122,10 @@ module CoffeeScript
|
||||
end
|
||||
|
||||
def compile_with_declarations(o={})
|
||||
code = compile_node(o)
|
||||
decls = ''
|
||||
decls = "#{o[:indent]}var #{o[:scope].declared_variables.join(', ')};\n" if o[:scope].declarations?(self)
|
||||
code = decls + compile_node(o)
|
||||
decls + code
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user