refactor: use error-utils for remote exception serialization / deserialization (#14788)
* refactor: use error-utils for remote exception serialization / deserialization * fix internal process.type in sandboxed renderer
This commit is contained in:
parent
3df739fa89
commit
b499d57cfd
4 changed files with 19 additions and 20 deletions
|
@ -54,12 +54,16 @@ preloadProcess.getHeapStatistics = () => binding.getHeapStatistics()
|
|||
preloadProcess.getSystemMemoryInfo = () => binding.getSystemMemoryInfo()
|
||||
preloadProcess.getCPUUsage = () => binding.getCPUUsage()
|
||||
preloadProcess.getIOCounters = () => binding.getIOCounters()
|
||||
preloadProcess.argv = process.argv = binding.getArgv()
|
||||
preloadProcess.execPath = process.execPath = binding.getExecPath()
|
||||
preloadProcess.pid = process.pid = binding.getPid()
|
||||
preloadProcess.resourcesPath = binding.getResourcesPath()
|
||||
preloadProcess.sandboxed = true
|
||||
preloadProcess.type = 'renderer'
|
||||
|
||||
Object.assign(processProps, {
|
||||
argv: binding.getArgv(),
|
||||
execPath: binding.getExecPath(),
|
||||
pid: binding.getPid(),
|
||||
resourcesPath: binding.getResourcesPath(),
|
||||
sandboxed: true,
|
||||
type: 'renderer'
|
||||
})
|
||||
|
||||
Object.assign(preloadProcess, processProps)
|
||||
Object.assign(process, processProps)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue