summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug678529.js
blob: ff8b8058c223f070ac251b416c7ed38774c24240 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error:Error

// Binary: cache/js-dbg-32-48e43edc8834-linux
// Flags: -j -m -a
//

var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (stack) { return {return: 1234}; };
g.eval("function f() { debugger; return 'bad'; }");
assertEq(new g.f(), 1234);