bug862357.js (484B)
1 // |jit-test| error: ReferenceError 2 function TestCase(e, a) { 3 return this.passed = (e == a); 4 } 5 function reportCompare (expected, actual) { 6 var expected_t = typeof expected; 7 var actual_t = typeof actual; 8 if (expected_t != actual_t) 9 printStatus(); 10 new TestCase(expected, actual); 11 } 12 var expect = ''; 13 reportCompare(expect, ''); 14 try { 15 test(); 16 } catch(exc1) {} 17 function test() { 18 var { expect } = ''; 19 for (var a = 1; a < 2; ++a) 20 reportCompare(expect, ''); 21 } 22 test();