Sign in
webkit
/
WebKit
/
e989104b1acb3d3feb9a3c81be0ba4526409d99b
/
.
/
JSTests
/
es6
/
generators_yield_operator_precedence.js
blob: efd1e2b62de32f034aa04bfe83013e038fcf219b [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
;
function
*
generator
(){
passed
=
yield
0
?
true
:
false
;
};
var
iterator
=
generator
();
iterator
.
next
();
iterator
.
next
(
true
);
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);