From 5b73486c2b17a3ed4582df3c49849be122c6527d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Wed, 10 Jul 2019 11:46:27 -0500 Subject: [PATCH] fixup --- doc/api/child_process.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 03dbf7df5ab111..f001ee3c7605f7 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1403,16 +1403,9 @@ const { spawn } = require('child_process'); const subprocess = spawn('ls'); -const ioStdout = subprocess.stdio[1]; - -// This is the same of listening to ioStdout data event subprocess.stdout.on('data', (data) => { console.log(`Received chunk ${data}`); }); - -ioStdout.on('data', (data) => { - console.log(`Received chunk ${data}`); -}); ``` ### subprocess.unref()