summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug763440.js
blob: babc4f5ab06fa0bc3d2264e3a32e4e59d0f1d864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
load(libdir + "immutable-prototype.js");

var summary = '';
var actual = '';
gcPreserveCode()
function TestCase(n, d, e, a) {
  this.name=n;
}
function reportCompare (expected, actual, description) {
  new TestCase
}
reportCompare(true, eval++, "Dummy description.");
var p = new Proxy({}, {
    has : function(id) {},
    set : function() {}
});
if (globalPrototypeChainIsMutable())
    Object.prototype.__proto__ = p;
new TestCase;
var expect = '';
reportCompare(expect, actual, summary);
gczeal(4);
try {
  evalcx(".");
} catch (e) {}
reportCompare(expect, actual, summary);