feat: Upgrade to Chromium 71.0.3578.98 (#15966)
This commit is contained in:
parent
92ddfd0d4c
commit
52fe92d02e
204 changed files with 2291 additions and 1760 deletions
|
@ -1,20 +1,14 @@
|
|||
'use strict'
|
||||
|
||||
;(function () { // eslint-disable-line
|
||||
return function (source, require, asarSource) {
|
||||
// Expose fs module without asar support.
|
||||
/* global source, require */
|
||||
|
||||
// NB: Node's 'fs' and 'internal/fs/streams' have a lazy-loaded circular
|
||||
// dependency. So to expose the unmodified Node 'fs' functionality here,
|
||||
// we have to copy both 'fs' *and* 'internal/fs/streams' and modify the
|
||||
// copies to depend on each other instead of on our asarified 'fs' code.
|
||||
source['original-fs'] = source.fs.replace("require('internal/fs/streams')", "require('original-fs/streams')")
|
||||
source['original-fs/streams'] = source['internal/fs/streams'].replace("require('fs')", "require('original-fs')")
|
||||
// Expose fs module without asar support.
|
||||
// NB: Node's 'fs' and 'internal/fs/streams' have a lazy-loaded circular
|
||||
// dependency. So to expose the unmodified Node 'fs' functionality here,
|
||||
// we have to copy both 'fs' *and* 'internal/fs/streams' and modify the
|
||||
// copies to depend on each other instead of on our asarified 'fs' code.
|
||||
source['original-fs'].replace("require('internal/fs/streams')", "require('original-fs/streams')")
|
||||
source['original-fs/streams'].replace("require('fs')", "require('original-fs')")
|
||||
|
||||
// Make asar.js accessible via "require".
|
||||
source.ELECTRON_ASAR = asarSource
|
||||
|
||||
// Monkey-patch the fs module.
|
||||
require('ELECTRON_ASAR').wrapFsWithAsar(require('fs'))
|
||||
}
|
||||
})()
|
||||
// Monkey-patch the fs module.
|
||||
require('electron/js2c/asar').wrapFsWithAsar(require('fs'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue