summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/misc/bug1126318.js
blob: 73ccdc07a73caff0765f56ed5b2df1f2cc512b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (typeof window === "undefined")
    window = this;

Object.defineProperty(window, "foo", {
    get: function() { return 5; },
    configurable: true
});

for (var i = 0; i < 100; ++i)
    assertEq(window.foo, 5);

if (typeof reportCompare === "function")
    reportCompare(0, 0);