mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1134198 - Update tests to reflect new specced behavior on Debugger.Frame.onPop. (r=tromey)
This commit is contained in:
parent
e613273dfc
commit
a60c0014ff
@ -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);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user