mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Forgot to add child_process_should_emit_error.js
This commit is contained in:
1 parent
264e540d00
commit
d7762dffe3
1 file changed
+9
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user