зеркало из https://github.com/electron/electron.git
No need to override child_process.fork
We already support asar in Node mode.
This commit is contained in:
Родитель
2c0b50a7e9
Коммит
1df033dce8
|
@ -298,4 +298,3 @@ exports.wrapFsWithAsar = (fs) ->
|
|||
overrideAPISync process, 'dlopen', 1
|
||||
overrideAPISync require('module')._extensions, '.node', 1
|
||||
overrideAPISync fs, 'openSync'
|
||||
overrideAPISync child_process, 'fork'
|
||||
|
|
|
@ -342,11 +342,6 @@ describe 'asar package', ->
|
|||
done()
|
||||
child.send 'message'
|
||||
|
||||
it 'throws ENOENT error when can not find file', ->
|
||||
p = path.join fixtures, 'asar', 'a.asar', 'not-exist'
|
||||
throws = -> child_process.fork p
|
||||
assert.throws throws, /ENOENT/
|
||||
|
||||
it 'supports asar in the forked js', (done) ->
|
||||
file = path.join fixtures, 'asar', 'a.asar', 'file1'
|
||||
child = child_process.fork path.join(fixtures, 'module', 'asar.js')
|
||||
|
|
Загрузка…
Ссылка в новой задаче