blob: a2e04edb727918d78b6a157d455b3e85e7d3488c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Simple {throw:} resumption.
load(libdir + "asserts.js");
var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (stack) { return {throw: "oops"}; };
assertThrowsValue(function () { g.eval("debugger;"); }, "oops");
g.eval("function f() { debugger; }");
assertThrowsValue(function () { g.f(); }, "oops");
|