undo workarounds for bug 449811 (create fresh lexical binding for each iteration of for-in/of loop)
This commit is contained in:
Родитель
9eff7051d9
Коммит
c5038aaff0
|
@ -95,12 +95,7 @@ let wrapWebContents = function(webContents) {
|
|||
}
|
||||
|
||||
// Mapping webFrame methods.
|
||||
for (let method2 of webFrameMethods) {
|
||||
// Redeclare variable within block to work around Mozilla bug 449811.
|
||||
// TODO: remove workaround once Mozilla bug is fixed.
|
||||
// https://github.com/mozilla/positron/issues/68
|
||||
let method = method2;
|
||||
|
||||
for (let method of webFrameMethods) {
|
||||
webContents[method] = function(...args) {
|
||||
this.send('ELECTRON_INTERNAL_RENDERER_WEB_FRAME_METHOD', method, args);
|
||||
};
|
||||
|
|
|
@ -93,12 +93,7 @@ var wrapArgs = function(args, visited) {
|
|||
// Populate object's members from descriptors.
|
||||
// This matches |getObjectMemebers| in rpc-server.
|
||||
let setObjectMembers = function(object, metaId, members) {
|
||||
for (let member2 of members) {
|
||||
// Redeclare variable within block to work around Mozilla bug 449811.
|
||||
// TODO: remove workaround once Mozilla bug is fixed.
|
||||
// https://github.com/mozilla/positron/issues/68
|
||||
let member = member2;
|
||||
|
||||
for (let member of members) {
|
||||
if (object.hasOwnProperty(member.name))
|
||||
continue;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче