BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Array_static_methods_Array.from_map_function_generator_instances.js
1 function test() {
2
3 var iterable = (function*(){ yield "foo"; yield "bar"; yield "bal"; }());
4 return Array.from(iterable, function(e, i) {
5   return e + this.baz + i;
6 }, { baz: "d" }) + '' === "food0,bard1,bald2";
7       
8 }
9
10 if (!test())
11     throw new Error("Test failed");
12