blob: a896f529c11505469d97b5d71c4707c07f249db1 [file] [log] [blame]
//@ skip
// FIXME: figure out why it times out.
// https://bugs.webkit.org/show_bug.cgi?id=130880
for (var i = 0; i < 100; ++i) {
var o = {};
o.__defineGetter__("f", function() {
return o.f;
});
var didThrow;
var result;
result = "not set";
try {
result = o.f;
} catch (e) {
didThrow = e;
}
if (result != "not set")
throw "Did set result: " + result;
if (!didThrow || didThrow.toString().indexOf("RangeError") != 0)
throw "Bad exception: " + didThrow;
}