Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
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"
);