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