summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-script-03.js
blob: c29de59e253ff30bce58df6f996b709fc218dd20 (plain)
1
2
3
4
5
6
7
8
// frame.script can create a Debugger.Script for a JS_Evaluate* script.

var g = newGlobal({newCompartment: true});
var dbg = Debugger(g);
var s;
dbg.onDebuggerStatement = function (frame) { s = frame.script; };
g.evaluate("debugger;");
assertEq(s instanceof Debugger.Script, true);