mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #511 from bocoup/typedarray-from-mapfn
Fix test for TypedArrays.from on callable function
This commit is contained in:
commit
0bd4e9d2ea
@ -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]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user