0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/child_process_should_emit_error.js

10 lines
211 B
JavaScript
Raw Normal View History

2010-06-30 08:12:46 +02:00
var exec = require('child_process').exec,
puts = require('sys').puts;
[0, 1].forEach(function(i) {
exec('ls', function(err, stdout, stderr) {
console.log(i);
throw new Error('hello world');
});
});