No need to override child_process.fork
authorCheng Zhao <zcbenz@gmail.com>
Fri, 20 Mar 2015 11:04:11 +0000 (19:04 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 20 Mar 2015 11:04:11 +0000 (19:04 +0800)
We already support asar in Node mode.

atom/common/lib/asar.coffee
spec/asar-spec.coffee

index 38ac2fc..e3e0f6f 100644 (file)
@@ -298,4 +298,3 @@ exports.wrapFsWithAsar = (fs) ->
   overrideAPISync process, 'dlopen', 1
   overrideAPISync require('module')._extensions, '.node', 1
   overrideAPISync fs, 'openSync'
-  overrideAPISync child_process, 'fork'
index 222faf9..39aa1e6 100644 (file)
@@ -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')