summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/extensions/regress-bug567606.js
blob: 6bebc8063c840f3a9a42f3d44058df50e9db539e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

var global = this;

(function() {
    function f() {
        this.b = function() {};
        Object.defineProperty(this, "b", ({
            configurable: global.__defineSetter__("", function() {})
        }));
    }
    for (y of [0]) {
        _ = new f();
    }
})();
uneval(this);

reportCompare(true, true);