summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1148973-2.js
blob: 97bbe40855d31236f969735c6b900be5b82f4aca (plain)
1
2
3
4
5
6
7
8
var proto = {};
var obj = Object.create(proto);
Object.defineProperty(proto, "x", { get: decodeURI, configurable: true });
Object.defineProperty(obj, "z", { get: function () { return this.x; } });
assertEq(obj.z, "undefined");

Object.defineProperty(proto, "x", { get: Math.sin, configurable: false });
assertEq(obj.z, NaN);