Forgot to add child_process_should_emit_error.js

This commit is contained in:
Ryan Dahl 2010-05-08 23:24:24 -07:00
parent 264e540d00
commit d7762dffe3

View File

@ -0,0 +1,9 @@
var exec = require('child_process').exec,
puts = require('sys').puts;
[0, 1].forEach(function(i) {
exec('ls', function(err, stdout, stderr) {
puts(i);
throw new Error('hello world');
});
});