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