summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug592224.js
blob: b39061e1177748df4802a30255dbd7f63e9a1f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error:TypeError

// Binary: cache/js-dbg-64-e8ee411dca70-linux
// Flags:
//
__defineGetter__("x", function () {});
function z() {
    "".replace(/s/, "");
}
z();
(function () {
    for (a = 0; a < 2; a++) {
        __defineGetter__("", /a/);
        for each(y in [__defineGetter__("x", function(){})]) {}
    }
}());