Merge pull request #6130 from rahatarmanahmed/fix-renderer-stdout
🐛 Don't load 'repl' unless needed
This commit is contained in:
Коммит
b74522d9f3
|
@ -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)
|
||||
})
|
||||
|
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче