gecko/dom/bindings/crashtests/822340-1.html
Boris Zbarsky 6aebf1cca6 Bug 822340. Make the Ion optimization for DOM method calls sound. r=jandem
The static functions just got moved with no changes made to them
except for a change from inTypes->unknown() to
inTypes->unknownObject() in the first test in TestAreKnownDOMTypes,
becase the rest of the method depends on the stronger condition, and
it was being ensured accidentally before.
2012-12-19 17:47:39 -08:00

12 lines
207 B
HTML

<!DOCTYPE html>
<script>
var xhr = new XMLHttpRequest;
function f() {
var x = xhr.getResponseHeader;
x("abc");
}
for (var i = 0; i < 20000; ++i) {
try { f(); } catch (e) {}
}
</script>