1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug953164.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +function test(a) { 1.5 + var total = 0; 1.6 + for (var i=0; i<100; i++) { 1.7 + 1.8 + var j = 1; 1.9 + var b = a.a 1.10 + if (b) { 1.11 + j += b.test; 1.12 + } 1.13 + total += j; 1.14 + } 1.15 + print(total) 1.16 +} 1.17 + 1.18 +var a1 = {"a": {"test":1}}; 1.19 +var a2 = {"a": undefined}; 1.20 +test(a1) 1.21 +test(a2) 1.22 +test(a1) 1.23 +test(a2)