Bug 1134198 - Update tests to reflect new specced behavior on Debugger.Frame.onPop. (r=tromey)

This commit is contained in:
Shu-yu Guo 2015-04-02 17:28:02 -07:00
parent e613273dfc
commit a60c0014ff
2 changed files with 8 additions and 6 deletions

View File

@ -6,9 +6,10 @@ var correct;
dbg.onEnterFrame = function (f) {
if (f.callee && f.callee.name == "f") {
f.onPop = function() {
// The scope at the point of onPop is the outermost.
correct = (f.environment.getVariable("e") === undefined &&
f.environment.getVariable("outer") === 43);
// The scope at the point of onPop is at the point of popping (the
// noSuchFn call).
correct = (f.environment.getVariable("e") === 42 &&
f.environment.getVariable("outer") === undefined);
};
}
};

View File

@ -6,9 +6,10 @@ var correct;
dbg.onEnterFrame = function (f) {
if (f.callee && f.callee.name == "f") {
f.onPop = function() {
// The scope at the point of onPop is the outermost.
correct = (f.environment.getVariable("e") === undefined &&
f.environment.getVariable("outer") === 43);
// The scope at the point of onPop is at the point of popping (the
// noSuchFn call).
correct = (f.environment.getVariable("e") === 42 &&
f.environment.getVariable("outer") === undefined);
};
}
};