summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bug1108603.js
blob: 54ba21e79a31b00e96415010d70d86ec72dc8c7d (plain)
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);