Sign in
webkit
/
WebKit
/
67fdb04ff86da85ec1f6eab7caac0901ec227cfe
/
.
/
JSTests
/
stress
/
function-caller-generator-body.js
blob: 70738a400abb6a65f1802ead5b315a253d4d4ecf [
file
] [
log
] [
blame
]
//@ runDefault
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
(
function
thingy
()
{
function
bar
()
{
return
bar
.
caller
;
}
function
*
foo
()
{
shouldBe
(
bar
(),
null
);
}
foo
().
next
();
})();