Sign in
webkit
/
WebKit
/
613de0057ae64eb418820c1bd3d79d1fa91ab720
/
.
/
JSTests
/
es6
/
generators_cant_use_this_with_new.js
blob: b6dfefc376d31840e2180923ddafaaa66ae8e827 [
file
] [
log
] [
blame
]
function
test
()
{
function
*
generator
(){
yield
this
.
x
;
yield
this
.
y
;
};
try
{
(
new
generator
()).
next
();
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);