]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/recurse-infinitely-on-getter.js
JavaScriptCore-7600.1.4.9.tar.gz
[apple/javascriptcore.git] / tests / stress / recurse-infinitely-on-getter.js
CommitLineData
81345200
A
1//@ skip
2// FIXME: figure out why it times out.
3// https://bugs.webkit.org/show_bug.cgi?id=130880
4
5for (var i = 0; i < 100; ++i) {
6 var o = {};
7 o.__defineGetter__("f", function() {
8 return o.f;
9 });
10 var didThrow;
11 var result;
12 result = "not set";
13 try {
14 result = o.f;
15 } catch (e) {
16 didThrow = e;
17 }
18 if (result != "not set")
19 throw "Did set result: " + result;
20 if (!didThrow || didThrow.toString().indexOf("RangeError") != 0)
21 throw "Bad exception: " + didThrow;
22}
23