mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
more progress with the lexer, perhaps it's done
This commit is contained in:
@@ -23,7 +23,11 @@ exports.compile_files: (paths, callback) ->
|
||||
coffee: process.createChildProcess compiler, ['--print'].concat(paths)
|
||||
coffee.addListener 'output', (results) ->
|
||||
js += results if results?
|
||||
# NB: we have to add a mutex to make sure it doesn't get called twice.
|
||||
exit_ran: false
|
||||
coffee.addListener 'exit', ->
|
||||
return if exit_ran
|
||||
exit_ran: true
|
||||
callback(js)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user