summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1434391.js
blob: 86efe7970b4a0389a39c4b24c23ad8296d657ff1 (plain)
1
2
3
4
5
6
7
8
// |jit-test| skip-if: !('oomTest' in this)

var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
oomTest(function () {
    assertEq(gw.executeInGlobal("(42).toString(0)").throw.errorMessageName, "JSMSG_BAD_RADIX");
});