Sign in
webkit
/
WebKit
/
247b0314320d499ae788b6ea993aa1d98e2d607e
/
.
/
JSTests
/
es6
/
Array_static_methods_Array.from_map_function_array-like_objects.js
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"
);