Merge pull request #5091 from electron/electron-asar-in-stack-traces
Rename ATOM_SHELL_ASAR to ELECTRON_ASAR
This commit is contained in:
commit
a2f7458e07
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
;(function () {
|
;(function () {
|
||||||
return function (process, require, asarSource) {
|
return function (process, require, asarSource) {
|
||||||
// Make asar.coffee accessible via "require".
|
// Make asar.coffee accessible via "require".
|
||||||
process.binding('natives').ATOM_SHELL_ASAR = asarSource
|
process.binding('natives').ELECTRON_ASAR = asarSource
|
||||||
|
|
||||||
// Monkey-patch the fs module.
|
// Monkey-patch the fs module.
|
||||||
require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'))
|
require('ELECTRON_ASAR').wrapFsWithAsar(require('fs'))
|
||||||
|
|
||||||
// Make graceful-fs work with asar.
|
// Make graceful-fs work with asar.
|
||||||
var source = process.binding('natives')
|
var source = process.binding('natives')
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
var nativeModule = new process.NativeModule('original-fs')
|
var nativeModule = new process.NativeModule('original-fs')
|
||||||
nativeModule.cache()
|
nativeModule.cache()
|
||||||
nativeModule.compile()
|
nativeModule.compile()
|
||||||
var asar = require('ATOM_SHELL_ASAR')
|
var asar = require('ELECTRON_ASAR')
|
||||||
asar.wrapFsWithAsar(nativeModule.exports)
|
asar.wrapFsWithAsar(nativeModule.exports)
|
||||||
module.exports = nativeModule.exports`
|
module.exports = nativeModule.exports`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue