michael@0: // |jit-test| error: ReferenceError michael@0: var k = 0; michael@0: function test() { michael@0: function gen() { michael@0: try { michael@0: try { michael@0: yield 1; michael@0: } finally { michael@0: if (k++ < 60) michael@0: actual += "Inner finally"; michael@0: } michael@0: } finally { } michael@0: } michael@0: try { michael@0: for (var i in gen()) michael@0: test(); michael@0: } catch (e) { michael@0: throw e; michael@0: } michael@0: } michael@0: test();