Fix test for TypedArrays.from on callable function

TypedArrays constructors are still callable even if they trigger a
TypeError Exception when a new target is not defined
This commit is contained in:
Leonardo Balter 2016-02-18 13:39:49 -05:00
parent dbcc8cadf3
commit a61fca93fa
1 changed files with 0 additions and 4 deletions

View File

@ -52,10 +52,6 @@ testWithTypedArrayConstructors(function(TA) {
TA.from(arrayLike, s);
}, "mapfn is a symbol");
assert.throws(TypeError, function() {
TA.from(arrayLike, TA);
}, "mapfn is a TypedArray constructor (not callable)");
assert.sameValue(
getIterator, 0,
"IsCallable(mapfn) check occurs before getting source[@@iterator]"