mirror of
https://github.com/electron/electron.git
synced 2026-02-07 05:35:02 -05:00
refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
committed by
Samuel Attard
parent
07161a8452
commit
3ad3ade828
@@ -19,7 +19,7 @@ v8Util.setHiddenValue(global, 'Buffer', Buffer)
|
||||
v8Util.setHiddenValue(global, 'ipc', new EventEmitter())
|
||||
// The process object created by browserify is not an event emitter, fix it so
|
||||
// the API is more compatible with non-sandboxed renderers.
|
||||
for (let prop of Object.keys(EventEmitter.prototype)) {
|
||||
for (const prop of Object.keys(EventEmitter.prototype)) {
|
||||
if (process.hasOwnProperty(prop)) {
|
||||
delete process[prop]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user