michael@0: // |jit-test| error: ReferenceError michael@0: function TestCase(e, a) michael@0: this.passed = (e == a); michael@0: function reportCompare (expected, actual) { michael@0: var expected_t = typeof expected; michael@0: var actual_t = typeof actual; michael@0: if (expected_t != actual_t) michael@0: printStatus(); michael@0: new TestCase(expected, actual); michael@0: } michael@0: var expect = ''; michael@0: reportCompare(expect, ''); michael@0: try { michael@0: test(); michael@0: } catch(exc1) {} michael@0: function test() { michael@0: var { expect } = ''; michael@0: for (var a = 1; a < 2; ++a) michael@0: reportCompare(expect, ''); michael@0: } michael@0: test();