Sign in
webkit
/
WebKit
/
f49b03c15d8d2a6a2f383c9d134f9d610877184f
/
.
/
JSTests
/
stress
/
generator-prototype-copy.js
blob: 977308f4316b5485343e5a8e6ff8657d1d0763f8 [
file
] [
log
] [
blame
]
function
*
gen
()
{
yield
;
}
let foo
=
gen
();
let obj
=
{};
obj
.
__proto__
=
foo
;
try
{
obj
.
next
().
value
;
throw
"bad"
;
}
catch
(
e
)
{
if
(!(
e instanceof
TypeError
))
throw
e
;
}