blob: 1db30571108d690aa127c30e5ca3ce1455e157d3 [file] [log] [blame]
function test() {
return Array.from({ 0: "foo", 1: "bar", length: 2 }, function(e, i) {
return e + this.baz + i;
}, { baz: "d" }) + '' === "food0,bard1";
}
if (!test())
throw new Error("Test failed");