Sign in
webkit
/
WebKit
/
d79f7faf1741e287395091ba9e177bbe8eb04d43
/
.
/
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"
);