Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1807 from TrevorBurnham/console_io

fixes #1798: using process.stderr in command.coffee
  • Loading branch information...
commit a6081caf50254742d6279ed9db820de4368e889a 2 parents 91cb433 + c77f773
Jeremy Ashkenas authored October 27, 2011
2  lib/coffee-script/command.js
@@ -22,7 +22,7 @@
22 22
   };
23 23
 
24 24
   printWarn = function(line) {
25  
-    return process.binding('stdio').writeError(line + '\n');
  25
+    return process.stderr.write(line + '\n');
26 26
   };
27 27
 
28 28
   BANNER = 'Usage: coffee [options] path/to/script.coffee\n\nIf called without options, `coffee` will run your script.';
4  src/command.coffee
@@ -17,12 +17,12 @@ CoffeeScript   = require './coffee-script'
17 17
 helpers.extend CoffeeScript, new EventEmitter
18 18
 
19 19
 printLine = (line) -> process.stdout.write line + '\n'
20  
-printWarn = (line) -> process.binding('stdio').writeError line + '\n'
  20
+printWarn = (line) -> process.stderr.write line + '\n'
21 21
 
22 22
 # The help banner that is printed when `coffee` is called without arguments.
23 23
 BANNER = '''
24 24
   Usage: coffee [options] path/to/script.coffee
25  
-  
  25
+
26 26
   If called without options, `coffee` will run your script.
27 27
          '''
28 28
 

0 notes on commit a6081ca

Please sign in to comment.
Something went wrong with that request. Please try again.