summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug706795.js
blob: 57d1a41a4e6f70245dc9d495e85d5de8d64f900b (plain)
1
2
3
4
5
6
7
executed = false;
Object.defineProperty(Object.prototype, 'x', { set: function() { executed = true; } });
function A() {
    this.x = 12;
}
new A();
assertEq(executed, true);