js/src/jit-test/tests/jaeger/recompile/bug672123.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 var caught = false;
michael@0 2 function h(code) {
michael@0 3 f = eval("(function(){" + code + "})")
michael@0 4 g()
michael@0 5 }
michael@0 6 function g() {
michael@0 7 try {
michael@0 8 f();
michael@0 9 } catch (r) { caught = true }
michael@0 10 }
michael@0 11 h("")
michael@0 12 for (i = 0; i < 9; i++) {
michael@0 13 h("")
michael@0 14 }
michael@0 15 h("")
michael@0 16 h("")
michael@0 17 h("")
michael@0 18 h("")
michael@0 19 h("")
michael@0 20 h("")
michael@0 21 h("")
michael@0 22 h("")
michael@0 23 h("")
michael@0 24 h("")
michael@0 25 h("")
michael@0 26 h("")
michael@0 27 h("")
michael@0 28 h("")
michael@0 29 h("")
michael@0 30 h("")
michael@0 31 h("")
michael@0 32 h("")
michael@0 33 h("")
michael@0 34 h("")
michael@0 35 h("")
michael@0 36 h("")
michael@0 37 h("")
michael@0 38 h("")
michael@0 39 h("")
michael@0 40 h("")
michael@0 41 h("")
michael@0 42 h("")
michael@0 43 h("")
michael@0 44 h("")
michael@0 45 h("\"\"(gc())")
michael@0 46 assertEq(caught, true);

mercurial