mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Rename getYoungestFrame to getNewestFrame.
--HG-- rename : js/src/jit-test/tests/debug/Debugger-getYoungestFrame-01.js => js/src/jit-test/tests/debug/Debugger-getNewestFrame-01.js rename : js/src/jit-test/tests/debug/Debugger-getYoungestFrame-02.js => js/src/jit-test/tests/debug/Debugger-getNewestFrame-02.js
This commit is contained in:
parent
da62d5e77d
commit
59c4f629be
@ -1,15 +1,15 @@
|
||||
// getYoungestFrame basics.
|
||||
// getNewestFrame basics.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
var g = newGlobal('new-compartment');
|
||||
var dbg = new Debugger(g);
|
||||
assertEq(dbg.getYoungestFrame(), null);
|
||||
assertEq(dbg.getNewestFrame(), null);
|
||||
|
||||
var global = this;
|
||||
var frame;
|
||||
function f() {
|
||||
frame = dbg.getYoungestFrame();
|
||||
frame = dbg.getNewestFrame();
|
||||
assertEq(frame instanceof Debugger.Frame, true);
|
||||
assertEq(frame.type, "eval");
|
||||
assertEq(frame.older, null);
|
@ -1,4 +1,4 @@
|
||||
// Hooks and Debugger.prototype.getYoungestFrame produce the same Frame object.
|
||||
// Hooks and Debugger.prototype.getNewestFrame produce the same Frame object.
|
||||
|
||||
var g = newGlobal('new-compartment');
|
||||
var dbg = Debugger(g);
|
||||
@ -13,7 +13,7 @@ dbg.hooks = {
|
||||
}
|
||||
};
|
||||
g.h = function () {
|
||||
savedFrame = dbg.getYoungestFrame();
|
||||
savedFrame = dbg.getNewestFrame();
|
||||
savedCallee = savedFrame.callee;
|
||||
assertEq(savedCallee.name, "f");
|
||||
};
|
@ -1177,9 +1177,9 @@ Debugger::getDebuggees(JSContext *cx, uintN argc, Value *vp)
|
||||
}
|
||||
|
||||
JSBool
|
||||
Debugger::getYoungestFrame(JSContext *cx, uintN argc, Value *vp)
|
||||
Debugger::getNewestFrame(JSContext *cx, uintN argc, Value *vp)
|
||||
{
|
||||
THISOBJ(cx, vp, Debugger, "getYoungestFrame", thisobj, dbg);
|
||||
THISOBJ(cx, vp, Debugger, "getNewestFrame", thisobj, dbg);
|
||||
|
||||
// cx->fp() would return the topmost frame in the current context.
|
||||
// Since there may be multiple contexts, use AllFramesIter instead.
|
||||
@ -1382,7 +1382,7 @@ JSFunctionSpec Debugger::methods[] = {
|
||||
JS_FN("removeDebuggee", Debugger::removeDebuggee, 1, 0),
|
||||
JS_FN("hasDebuggee", Debugger::hasDebuggee, 1, 0),
|
||||
JS_FN("getDebuggees", Debugger::getDebuggees, 0, 0),
|
||||
JS_FN("getYoungestFrame", Debugger::getYoungestFrame, 0, 0),
|
||||
JS_FN("getNewestFrame", Debugger::getNewestFrame, 0, 0),
|
||||
JS_FN("clearAllBreakpoints", Debugger::clearAllBreakpoints, 1, 0),
|
||||
JS_FS_END
|
||||
};
|
||||
|
@ -131,7 +131,7 @@ class Debugger {
|
||||
static JSBool removeDebuggee(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool hasDebuggee(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool getDebuggees(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool getYoungestFrame(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool getNewestFrame(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool clearAllBreakpoints(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSBool construct(JSContext *cx, uintN argc, Value *vp);
|
||||
static JSPropertySpec properties[];
|
||||
|
Loading…
Reference in New Issue
Block a user