зеркало из https://github.com/electron/electron.git
Reset process.noAsar in finally block
This commit is contained in:
Родитель
b186d752da
Коммит
46fbb6ed61
|
@ -675,9 +675,11 @@
|
|||
childProcess[functionName] = function () {
|
||||
const processNoAsarOriginalValue = process.noAsar
|
||||
process.noAsar = true
|
||||
const result = old.apply(this, arguments)
|
||||
process.noAsar = processNoAsarOriginalValue
|
||||
return result
|
||||
try {
|
||||
return old.apply(this, arguments)
|
||||
} finally {
|
||||
process.noAsar = processNoAsarOriginalValue
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче