Backout 61e0d5d09f77 due to test breakage

This commit is contained in:
Panos Astithas 2012-06-08 11:18:28 +03:00
parent 7e556ef3c9
commit efc2326842
3 changed files with 5 additions and 13 deletions

View File

@ -882,7 +882,7 @@ SourceScripts.prototype = {
this._addScript({ url: aPacket.url, startLine: aPacket.startLine }, true);
// If there are any stored breakpoints for this script, display them again.
for each (let bp in DebuggerController.Breakpoints.store) {
for (let bp of DebuggerController.Breakpoints.store) {
if (bp.location.url == aPacket.url) {
DebuggerController.Breakpoints.displayBreakpoint(bp.location);
}

View File

@ -149,9 +149,7 @@ function eventSource(aProto) {
listener.apply(null, arguments);
} catch (e) {
// Prevent a bad listener from interfering with the others.
let msg = e + ": " + e.stack;
Cu.reportError(msg);
dumpn(msg);
Cu.reportError(e);
}
}
}

View File

@ -170,10 +170,8 @@ ThreadActor.prototype = {
this.conn.send(packet);
return this._nest();
} catch(e) {
let msg = "Got an exception during TA__pauseAndRespond: " + e +
": " + e.stack;
Cu.reportError(msg);
dumpn(msg);
Cu.reportError("Got an exception during TA__pauseAndRespond: " + e +
": " + e.stack);
return undefined;
}
},
@ -1542,15 +1540,11 @@ EnvironmentActor.prototype = {
// TODO: this part should be removed in favor of the commented-out part
// below when getVariableDescriptor lands.
let desc = {
value: this.obj.getVariable(name),
configurable: false,
writable: true,
enumerable: true
};
// Avoid "Debugger scope is not live" errors for |arguments|, introduced
// in bug 746601.
if (this.obj.callee.live) {
desc.value = this.obj.getVariable(name);
}
//let desc = this.obj.getVariableDescriptor(name);
let descForm = {
enumerable: true,