Rename ATOM_SHELL_ASAR to ELECTRON_ASAR
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 8 Apr 2016 15:53:58 +0000 (08:53 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 8 Apr 2016 15:53:58 +0000 (08:53 -0700)
lib/common/asar_init.js

index 0f72820..13ee449 100644 (file)
@@ -1,10 +1,10 @@
 ;(function () {
   return function (process, require, asarSource) {
     // Make asar.coffee accessible via "require".
-    process.binding('natives').ATOM_SHELL_ASAR = asarSource
+    process.binding('natives').ELECTRON_ASAR = asarSource
 
     // Monkey-patch the fs module.
-    require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'))
+    require('ELECTRON_ASAR').wrapFsWithAsar(require('fs'))
 
     // Make graceful-fs work with asar.
     var source = process.binding('natives')
@@ -13,7 +13,7 @@
 var nativeModule = new process.NativeModule('original-fs')
 nativeModule.cache()
 nativeModule.compile()
-var asar = require('ATOM_SHELL_ASAR')
+var asar = require('ELECTRON_ASAR')
 asar.wrapFsWithAsar(nativeModule.exports)
 module.exports = nativeModule.exports`
   }