2 "Tests that DFG custom getter caching does not break the world if the getter throws an exception."
10 var x
= new XMLHttpRequest();
11 x
.open("GET", "http://foo.bar.com/");
13 x
.responseType
= "arraybuffer";
15 return "Returned result: " + foo(x
);
17 return "Threw exception: " + e
;
21 for (var i
= 0; i
< 200; ++i
) {
22 shouldBe("bar(i >= 100)", i
>= 100 ? "\"Threw exception: InvalidStateError: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').\"" : "\"Returned result: \"");