2 "Tests that DFG custom getter caching does not break the world if the getter throws an exception from inlined code."
13 function bar(binary
) {
14 var x
= new XMLHttpRequest();
15 x
.open("GET", "http://foo.bar.com/");
17 x
.responseType
= "arraybuffer";
19 return "Returned result: " + baz(x
);
21 return "Threw exception: " + e
;
25 for (var i
= 0; i
< 200; ++i
) {
26 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: \"");