mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 974159 - debugger-controller.js should use ES6 iterators instead of old style iterators; r=past
This commit is contained in:
parent
d16b9aad35
commit
d6bb039654
@ -2128,16 +2128,6 @@ Breakpoints.prototype = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets all Promises for the BreakpointActor client objects that are
|
||||
* either enabled (added to the server) or disabled (removed from the server,
|
||||
* but for which some details are preserved).
|
||||
*/
|
||||
get _addedOrDisabled() {
|
||||
for (let [, value] of this._added) yield value;
|
||||
for (let [, value] of this._disabled) yield value;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get a Promise for the BreakpointActor client object which is already added
|
||||
* or currently being added at the given location.
|
||||
@ -2180,6 +2170,22 @@ Breakpoints.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets all Promises for the BreakpointActor client objects that are
|
||||
* either enabled (added to the server) or disabled (removed from the server,
|
||||
* but for which some details are preserved).
|
||||
*/
|
||||
Object.defineProperty(Breakpoints.prototype, "_addedOrDisabled", {
|
||||
get: function* () {
|
||||
for (let [, value] of this._added) {
|
||||
yield value;
|
||||
}
|
||||
for (let [, value] of this._disabled) {
|
||||
yield value;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Localization convenience methods.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user