🐛 Don't load 'repl' unless needed
authorRahat Ahmed <rahatarmanahmed@gmail.com>
Sun, 19 Jun 2016 07:34:48 +0000 (02:34 -0500)
committerRahat Ahmed <rahatarmanahmed@gmail.com>
Sun, 19 Jun 2016 07:34:48 +0000 (02:34 -0500)
commit3c7c584444873221521a3154571630bfdd62f0e6
tree13982294089e11b7da694f175aee107849fc34b9
parent52350b5e35a871247c24ff31ed2720690683cf6f
🐛 Don't load 'repl' unless needed

Git bisect revealed that process.stdout failed to initiate (and was replaced with a write stream that does nothing) when the 'repl' module was loaded. This commit moves `require('repl')` so that it is only loaded when the --interactive flag is present.

Fixes #5051
default_app/main.js
spec/node-spec.js