michael@0: // 'this' in escaping generator-expression in a method michael@0: // is the same as 'this' in the enclosing method michael@0: // even if the method does not otherwise use 'this'. michael@0: michael@0: var obj = { michael@0: f: function () { michael@0: return (this for (x of [0])); michael@0: } michael@0: }; michael@0: michael@0: assertEq(obj.f().next(), obj);