summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/defaults-exceptions.js
blob: ab8d9c1b698db5919f71cab936c2a23530fefaf4 (plain)
1
2
3
4
5
6
load(libdir + "asserts.js");

function die() { throw "x"; }
var ok = true;
function f(a = die()) { ok = false; }
assertThrowsValue(f, "x");