1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug995673.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +var total = 0 1.5 + 1.6 +x = [ [] ] 1.7 +x[0].valueOf = function () { 1.8 + total++; 1.9 +} 1.10 +function f(y) { 1.11 + y != Math.abs() 1.12 +} 1.13 +(function() { 1.14 + f() 1.15 + f(x[0]) 1.16 + f(x[0]) 1.17 +})() 1.18 + 1.19 +assertEq(total, 2)