Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // parent.js
- //
- var fork = require('child_process').fork;
- var child = fork('./child.js', [], { stdio: 'inherit' });
- child.on('error', function () {
- console.log('error'); // never gets here
- });
- //
- // child.js
- //
- new NonExistingClass();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement