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