feat: deprecate modules internally using remote.require in sandboxed renderer context (#15145)
This commit is contained in:
parent
d5d1fa8290
commit
d561c5531b
12 changed files with 71 additions and 8 deletions
|
@ -90,6 +90,15 @@ Object.assign(preloadProcess, processProps)
|
|||
Object.assign(process, binding.process)
|
||||
Object.assign(process, processProps)
|
||||
|
||||
Object.defineProperty(preloadProcess, 'noDeprecation', {
|
||||
get () {
|
||||
return process.noDeprecation
|
||||
},
|
||||
set (value) {
|
||||
process.noDeprecation = value
|
||||
}
|
||||
})
|
||||
|
||||
process.on('exit', () => preloadProcess.emit('exit'))
|
||||
|
||||
// This is the `require` function that will be visible to the preload script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue