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