Skip to content
Snippets Groups Projects
Commit 0bd4e9d2 authored by Gorkem Yakin's avatar Gorkem Yakin
Browse files

Merge pull request #511 from bocoup/typedarray-from-mapfn

Fix test for TypedArrays.from on callable function
parents dbcc8cad a61fca93
No related branches found
No related tags found
No related merge requests found
...@@ -52,10 +52,6 @@ testWithTypedArrayConstructors(function(TA) { ...@@ -52,10 +52,6 @@ testWithTypedArrayConstructors(function(TA) {
TA.from(arrayLike, s); TA.from(arrayLike, s);
}, "mapfn is a symbol"); }, "mapfn is a symbol");
assert.throws(TypeError, function() {
TA.from(arrayLike, TA);
}, "mapfn is a TypedArray constructor (not callable)");
assert.sameValue( assert.sameValue(
getIterator, 0, getIterator, 0,
"IsCallable(mapfn) check occurs before getting source[@@iterator]" "IsCallable(mapfn) check occurs before getting source[@@iterator]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment