From a61fca93fa93cc9dd0ebd0ad8f38fc6e20ece9ff Mon Sep 17 00:00:00 2001 From: Leonardo Balter <leonardo.balter@gmail.com> Date: Thu, 18 Feb 2016 13:39:49 -0500 Subject: [PATCH] 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 --- test/built-ins/TypedArrays/from/mapfn-is-not-callable.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js b/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js index 56ff6afd08..7f0493650d 100644 --- a/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js +++ b/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js @@ -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]" -- GitLab