Browse Source

Remove asciiSlice from docs

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
69c3e1961b
  1. 3
      doc/api/child_processes.markdown

3
doc/api/child_processes.markdown

@ -130,8 +130,9 @@ Example of checking for failed exec:
var spawn = require('child_process').spawn,
child = spawn('bad_command');
child.stderr.setEncoding('utf8');
child.stderr.on('data', function (data) {
if (/^execvp\(\)/.test(data.asciiSlice(0,data.length))) {
if (/^execvp\(\)/.test(data)) {
console.log('Failed to start child process.');
}
});

Loading…
Cancel
Save