Created
April 29, 2015 23:28
-
-
Save laser/0c85ee4e972945a82123 to your computer and use it in GitHub Desktop.
Variadic `exec` call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @flow */ | |
var exec = require('child_process').exec; | |
exec('ls', function(err, line) { | |
console.log('zomg'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16:26 $ flow | |
Flow server launched for /Users/erinswenson-healey/dev/flarp | |
Spawned flow server (child pid=39747) | |
Logs will go to /var/folders/0_/x_fvm0dj0zb6r__7n967b0840000gn/T/flow/zSUserszSerinswenson-healeyzSdevzSflarp.log | |
The flow server will be ready in a moment. | |
/Users/erinswenson-healey/dev/flarp/demo.js:5:1,7:2: function call | |
Too few arguments (expected default/rest parameters in function) | |
/Users/erinswenson-healey/dev/flarp/demo.js:3:12,40: function type | |
Found 1 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to 0.10 Node.js bindings here.