1 2 3 4 5 6 7 8 9
var caught = false; try { evaluate(cacheEntry(""), {saveBytecode: {value: true}, global: this}); [[0]]; } catch (err) { caught = true; assertEq(err.message, "compartment cannot save singleton anymore."); } assertEq(caught, true);