Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | // |jit-test| error: ReferenceError |
michael@0 | 2 | function TestCase(e, a) |
michael@0 | 3 | this.passed = (e == a); |
michael@0 | 4 | function reportCompare (expected, actual) { |
michael@0 | 5 | var expected_t = typeof expected; |
michael@0 | 6 | var actual_t = typeof actual; |
michael@0 | 7 | if (expected_t != actual_t) |
michael@0 | 8 | printStatus(); |
michael@0 | 9 | new TestCase(expected, actual); |
michael@0 | 10 | } |
michael@0 | 11 | var expect = ''; |
michael@0 | 12 | reportCompare(expect, ''); |
michael@0 | 13 | try { |
michael@0 | 14 | test(); |
michael@0 | 15 | } catch(exc1) {} |
michael@0 | 16 | function test() { |
michael@0 | 17 | var { expect } = ''; |
michael@0 | 18 | for (var a = 1; a < 2; ++a) |
michael@0 | 19 | reportCompare(expect, ''); |
michael@0 | 20 | } |
michael@0 | 21 | test(); |