blob: 1affdb2546e22f8074ea48316a78dbbca8c1f68d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// While eval code is running, findScripts returns its script.
var g = newGlobal();
var dbg = new Debugger(g);
var log;
g.check = function () {
log += 'c';
var frame = dbg.getNewestFrame();
assertEq(frame.type, "eval");
assertEq(dbg.findScripts().indexOf(frame.script) != -1, true);
};
log = '';
g.eval('check()');
assertEq(log, 'c');
|