adding correct semicolons to bound functions

This commit is contained in:
Jeremy Ashkenas
2010-07-24 00:45:00 -07:00
parent e41abe2d83
commit 85ed376748
3 changed files with 10 additions and 10 deletions

View File

@@ -892,7 +892,7 @@ exports.CodeNode: class CodeNode extends BaseNode
func: "function(${ params.join(', ') }) {$code${ code and @idt(if @bound then 1 else 0) }}"
func: "($func)" if top and not @bound
return func unless @bound
"(function(_this) {\n${@idt(1)}return $func\n$@tab})(this)"
"(function(_this) {\n${@idt(1)}return $func;\n$@tab})(this)"
topSensitive: ->
true