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 | function zero() { return 0; } |
michael@0 | 2 | function f(x, a) { |
michael@0 | 3 | var test = 0x7fffffff; |
michael@0 | 4 | |
michael@0 | 5 | for (var i=0; i<100; i++) |
michael@0 | 6 | { |
michael@0 | 7 | if (i == 0) { |
michael@0 | 8 | test += 1; |
michael@0 | 9 | var t = (test > zero()) * (0xffffffff >>> x); |
michael@0 | 10 | } |
michael@0 | 11 | var test2 = test | 0; |
michael@0 | 12 | return [test2,t]; |
michael@0 | 13 | } |
michael@0 | 14 | } |
michael@0 | 15 | var t = f(0, ""); |
michael@0 | 16 | assertEq(t[0], 0x80000000 | 0); |
michael@0 | 17 | assertEq(t[1], 0xffffffff >>> 0); |
michael@0 | 18 | |
michael@0 | 19 | var t = f(0); |
michael@0 | 20 | assertEq(t[0], 0x80000000 | 0); |
michael@0 | 21 | assertEq(t[1], 0xffffffff >>> 0); |