3 <title>Test that we don't DCE functions that can throw
</title>
4 <script src=
"/resources/testharness.js"></script>
5 <script src=
"/resources/testharnessreport.js"></script>
8 /* global test, assert_true */
13 root
.querySelectorAll("");
14 } catch (e
) { threw
= true; }
15 // Hot loop to make sure the JIT heuristics ion-compile this function even
16 // though it's throwing exceptions (which would normally make us back off
17 // of ion compilation).
18 for (var i
= 0; i
< 1500; i
++) {
25 var el
= document
.createElement("div");
26 for (var i
= 0; i
< 200; i
++)
29 }, "Shouldn't optimize away throwing functions");