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