Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug790629-2.js
blob: cfae9cdbaccf83f8c6bdbdc1a10c842ac68d58ef [
file
] [
log
] [
blame
]
// 'this' in escaping generator-expression in a method
// is the same as 'this' in the enclosing method.
var
obj
=
{
f
:
function
()
{
assertEq
(
this
,
obj
);
return
(
this
for
(
x of
[
0
]));
}
};
assertEq
(
obj
.
f
().
next
(),
obj
);