undo workarounds for bug 449811 (create fresh lexical binding for each iteration of for-in/of loop)

This commit is contained in:
Myk Melez 2016-10-04 16:47:23 -07:00
Родитель 9eff7051d9
Коммит c5038aaff0
2 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -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;