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

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