Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // |jit-test| error: ReferenceError |
michael@0 | 2 | function f1() { |
michael@0 | 3 | N = 62; |
michael@0 | 4 | mt = Array |
michael@0 | 5 | function g1(n1) { |
michael@0 | 6 | return n1 < 0 ? (1 ^ 21) + 21: n1 |
michael@0 | 7 | } |
michael@0 | 8 | function g2(n1, n2) { |
michael@0 | 9 | return g1(n1 + n2 & 4294967295); |
michael@0 | 10 | } |
michael@0 | 11 | function g3(n1, n2) { |
michael@0 | 12 | sum = 0; |
michael@0 | 13 | for (var i = 0; i < 32; ++i) { |
michael@0 | 14 | if (n1 >> i) { |
michael@0 | 15 | sum = g2(sum, g1(n2)) |
michael@0 | 16 | } |
michael@0 | 17 | } |
michael@0 | 18 | return sum |
michael@0 | 19 | } |
michael@0 | 20 | this.h1 = function() { |
michael@0 | 21 | for (mti = 1; mti < N; mti++) { |
michael@0 | 22 | mt[mti] = g2(g3(3, g1(mt[mti - 1] ^ 0)), mti) |
michael@0 | 23 | } |
michael@0 | 24 | }; |
michael@0 | 25 | this.i2 = function() { |
michael@0 | 26 | if (mti > N) { |
michael@0 | 27 | mti = 0; |
michael@0 | 28 | } |
michael@0 | 29 | y = mt[mti++]; |
michael@0 | 30 | return y |
michael@0 | 31 | }; |
michael@0 | 32 | this.i1 = function() { |
michael@0 | 33 | return (this.i2() + 5) * 2e-10 |
michael@0 | 34 | }; |
michael@0 | 35 | } (function() { |
michael@0 | 36 | fuzzMT = new f1; |
michael@0 | 37 | fuzzMT.h1(9); |
michael@0 | 38 | rnd = function(n) { |
michael@0 | 39 | return Math.floor(fuzzMT.i1() * n) |
michael@0 | 40 | }; |
michael@0 | 41 | } ()); |
michael@0 | 42 | function f5(a) { |
michael@0 | 43 | return a[rnd(a.length)] |
michael@0 | 44 | } |
michael@0 | 45 | function f2(d, b) { |
michael@0 | 46 | f3(d, b); |
michael@0 | 47 | return "" + f2(2, b) + ""; |
michael@0 | 48 | } |
michael@0 | 49 | function f3(d, b) { |
michael@0 | 50 | if (rnd(4) == 1) { |
michael@0 | 51 | f5(f4)(d, b) |
michael@0 | 52 | } |
michael@0 | 53 | } |
michael@0 | 54 | var f4 = [function() { ["", f6(), ""] |
michael@0 | 55 | }]; |
michael@0 | 56 | function f6(db) { |
michael@0 | 57 | return f5(foo)(); |
michael@0 | 58 | } |
michael@0 | 59 | var foo = [function() { |
michael@0 | 60 | t(["", "", "", "", "", "", "", "", "", "", "", "" + h.I, ""]); |
michael@0 | 61 | }]; |
michael@0 | 62 | f2() |
michael@0 | 63 | |
michael@0 | 64 | /* Don't assert or crash. */ |
michael@0 | 65 |