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(){})]) {} } }());