summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug951213.js
blob: 37454491dd5a5b441a7585887f5551804ad1ca42 (plain)
1
2
3
4
5
6
7
8
enableShellAllocationMetadataBuilder();
function foo(x, y) {
  this.g = x + y;
}
var a = 0;
var b = { valueOf: function() { return Object.defineProperty(Object.prototype, 'g', {}); } };
var c = new foo(a, b);