Sign in
webkit
/
WebKit
/
6fd57f0545e2ab789319dc828ca2e5959d39c256
/
.
/
JSTests
/
es6
/
Array_static_methods_Array.from_array-like_objects.js
blob: bee9b891481f5b573f46caf6183f27496b0d28fb [
file
] [
log
] [
blame
]
function
test
()
{
return
Array
.
from
({
0
:
"foo"
,
1
:
"bar"
,
length
:
2
})
+
''
===
"foo,bar"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);