Merge pull request #6130 from rahatarmanahmed/fix-renderer-stdout

🐛 Don't load 'repl' unless needed
This commit is contained in:
Cheng Zhao 2016-06-19 12:32:06 +00:00 committed by GitHub
commit b74522d9f3
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,6 @@ const {app, dialog, shell, Menu} = require('electron')
const fs = require('fs')
const Module = require('module')
const path = require('path')
const repl = require('repl')
const url = require('url')
// Parse command line options.
@ -315,6 +314,7 @@ function startRepl () {
return
}
const repl = require('repl')
repl.start('> ').on('exit', () => {
process.exit(0)
})

View file

@ -225,7 +225,7 @@ describe('node feature', function () {
process.stdout.write('test')
})
xit('should have isTTY defined', function () {
it('should have isTTY defined', function () {
assert.equal(typeof process.stdout.isTTY, 'boolean')
})
})