mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Automated merge with http://hg.mozilla.org/labs/weave
This commit is contained in:
commit
0013cac9d2
@ -115,6 +115,7 @@ function Generator(thisArg, method, onComplete, args) {
|
||||
this._id = gCurrentId++;
|
||||
this.onComplete = onComplete;
|
||||
this._args = args;
|
||||
this._stackAtLastCallbackGen = null;
|
||||
|
||||
gOutstandingGenerators.add(this);
|
||||
|
||||
@ -132,6 +133,7 @@ Generator.prototype = {
|
||||
let caller = Components.stack.caller;
|
||||
let cbId = gCurrentCbId++;
|
||||
this._outstandingCbs++;
|
||||
this._stackAtLastCallbackGen = caller;
|
||||
this._log.trace(this.name + ": cb-" + cbId + " generated at:\n" +
|
||||
formatAsyncFrame(caller));
|
||||
let self = this;
|
||||
@ -172,7 +174,11 @@ Generator.prototype = {
|
||||
},
|
||||
|
||||
get asyncStack() {
|
||||
return ("unknown (async) :: " + this.name + "\n" +
|
||||
let cbGenText = "";
|
||||
if (this._stackAtLastCallbackGen)
|
||||
cbGenText = (" (last self.cb generated at " +
|
||||
formatAsyncFrame(this._stackAtLastCallbackGen) + ")");
|
||||
return ("unknown (async) :: " + this.name + cbGenText + "\n" +
|
||||
traceAsyncFrame(this._initFrame));
|
||||
},
|
||||
|
||||
|
@ -58,6 +58,7 @@ function RequestException(resource, action, request) {
|
||||
this._resource = resource;
|
||||
this._action = action;
|
||||
this._request = request;
|
||||
this.location = Components.stack.caller;
|
||||
}
|
||||
RequestException.prototype = {
|
||||
get resource() { return this._resource; },
|
||||
|
Loading…
Reference in New Issue
Block a user