Sign in
webkit
/
WebKit
/
8f44c6a7d67fb77bce0518af9c582986cd4b9e10
/
.
/
JSTests
/
es6
/
Array_static_methods_Array.from_generator_instances.js
blob: 78ca4a7c328fe350b38a3ea1373337e7b1c792e6 [
file
] [
log
] [
blame
]
function
test
()
{
var
iterable
=
(
function
*(){
yield
1
;
yield
2
;
yield
3
;
}());
return
Array
.
from
(
iterable
)
+
''
===
"1,2,3"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);