mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
adding compilation over stdin/stdout. Use --stdio or -s, and pipe away.
This commit is contained in:
@@ -156,7 +156,7 @@ Expressions: exports.Expressions: inherit Node, {
|
||||
o.scope: new Scope(null, this, null)
|
||||
code: if o.globals then @compile_node(o) else @compile_with_declarations(o)
|
||||
code: code.replace(TRAILING_WHITESPACE, '')
|
||||
if o.no_wrap then code else "(function(){\n"+code+"\n})();"
|
||||
if o.no_wrap then code else "(function(){\n"+code+"\n})();\n"
|
||||
|
||||
# Compile the expressions body, with declarations of all inner variables
|
||||
# pushed up to the top.
|
||||
|
||||
Reference in New Issue
Block a user