onExceptionUnwind-13.js (358B)
1 // |jit-test| error: 4 2 // 3 // Test that we can handle doing debug mode OSR from onExceptionUnwind when 4 // settling on a pc without a Baseline ICEntry. 5 6 var g = newGlobal({newCompartment: true}); 7 var dbg = new Debugger(g); 8 dbg.onExceptionUnwind = function () {}; 9 10 g.eval("" + function f(y) { 11 if (y > 0) { 12 throw 4; 13 } 14 }); 15 g.eval("f(0)"); 16 g.eval("f(1)");