summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1172503-2.js
blob: 2c65b7161779f8f2ca32e19eed1acba3df710928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
load(libdir + "immutable-prototype.js");

var n = 0;
if (globalPrototypeChainIsMutable()) {
  this.__proto__ = new Proxy({}, {
      has: function () {
          if (++n === 2)
              return false;
          a = 0;
      }
  });
  }
a = 0;
assertEq(a, 0);