1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug862357.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +// |jit-test| error: ReferenceError 1.5 +function TestCase(e, a) 1.6 + this.passed = (e == a); 1.7 +function reportCompare (expected, actual) { 1.8 + var expected_t = typeof expected; 1.9 + var actual_t = typeof actual; 1.10 + if (expected_t != actual_t) 1.11 + printStatus(); 1.12 + new TestCase(expected, actual); 1.13 +} 1.14 +var expect = ''; 1.15 +reportCompare(expect, ''); 1.16 +try { 1.17 + test(); 1.18 +} catch(exc1) {} 1.19 +function test() { 1.20 + var { expect } = ''; 1.21 + for (var a = 1; a < 2; ++a) 1.22 + reportCompare(expect, ''); 1.23 +} 1.24 +test();