diff --git a/test/built-ins/RegExp/prototype/dotAll/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/dotAll/this-val-invalid-obj.js index 0f0d3909b9..4998f489ea 100644 --- a/test/built-ins/RegExp/prototype/dotAll/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/dotAll/this-val-invalid-obj.js @@ -28,3 +28,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { dotAll.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + dotAll.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/dotAll/this-val-non-obj.js b/test/built-ins/RegExp/prototype/dotAll/this-val-non-obj.js index c400b1ba6c..470d192dab 100644 --- a/test/built-ins/RegExp/prototype/dotAll/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/dotAll/this-val-non-obj.js @@ -38,3 +38,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { dotAll.call(4); }, "number"); + +assert.throws(TypeError, function() { + dotAll.call(4n); +}, "bigint"); diff --git a/test/built-ins/RegExp/prototype/flags/this-val-non-obj.js b/test/built-ins/RegExp/prototype/flags/this-val-non-obj.js index 2211ae013d..bb553dcb02 100644 --- a/test/built-ins/RegExp/prototype/flags/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/flags/this-val-non-obj.js @@ -35,3 +35,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(Symbol()); }, 'symbol'); + +assert.throws(TypeError, function() { + get.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/global/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/global/this-val-invalid-obj.js index 1255c17fef..dc9e85cfbc 100644 --- a/test/built-ins/RegExp/prototype/global/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/global/this-val-invalid-obj.js @@ -24,3 +24,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + get.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/global/this-val-non-obj.js b/test/built-ins/RegExp/prototype/global/this-val-non-obj.js index a1c0515b61..c68b428734 100644 --- a/test/built-ins/RegExp/prototype/global/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/global/this-val-non-obj.js @@ -35,3 +35,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(symbol); }, 'symbol'); + +assert.throws(TypeError, function() { + get.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/hasIndices/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/hasIndices/this-val-invalid-obj.js index ac5b596a66..27c54cf5dd 100644 --- a/test/built-ins/RegExp/prototype/hasIndices/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/hasIndices/this-val-invalid-obj.js @@ -28,3 +28,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { hasIndices.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + hasIndices.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/hasIndices/this-val-non-obj.js b/test/built-ins/RegExp/prototype/hasIndices/this-val-non-obj.js index 325c9ca4aa..2434c72853 100644 --- a/test/built-ins/RegExp/prototype/hasIndices/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/hasIndices/this-val-non-obj.js @@ -38,3 +38,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { hasIndices.call(4); }, "number"); + +assert.throws(TypeError, function() { + hasIndices.call(4n); +}, "bigint"); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/ignoreCase/this-val-invalid-obj.js index 6fec080d1b..a3d5c65b88 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/this-val-invalid-obj.js @@ -24,3 +24,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + get.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/this-val-non-obj.js b/test/built-ins/RegExp/prototype/ignoreCase/this-val-non-obj.js index b7c77f162e..edb0410a88 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/this-val-non-obj.js @@ -35,3 +35,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(symbol); }, 'symbol'); + +assert.throws(TypeError, function() { + get.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/multiline/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/multiline/this-val-invalid-obj.js index 815e973a85..4343cf6795 100644 --- a/test/built-ins/RegExp/prototype/multiline/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/multiline/this-val-invalid-obj.js @@ -24,3 +24,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + get.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/multiline/this-val-non-obj.js b/test/built-ins/RegExp/prototype/multiline/this-val-non-obj.js index c62940c8c5..430c904927 100644 --- a/test/built-ins/RegExp/prototype/multiline/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/multiline/this-val-non-obj.js @@ -35,3 +35,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(symbol); }, 'symbol'); + +assert.throws(TypeError, function() { + get.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/source/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/source/this-val-invalid-obj.js index 59cdfa4960..f78e78a9b3 100644 --- a/test/built-ins/RegExp/prototype/source/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/source/this-val-invalid-obj.js @@ -24,3 +24,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + get.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/source/this-val-non-obj.js b/test/built-ins/RegExp/prototype/source/this-val-non-obj.js index 956e700625..e5ef0d9908 100644 --- a/test/built-ins/RegExp/prototype/source/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/source/this-val-non-obj.js @@ -35,3 +35,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { get.call(symbol); }, 'symbol'); + +assert.throws(TypeError, function() { + get.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/sticky/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/sticky/this-val-invalid-obj.js index f982ecccf4..caf81e07ca 100644 --- a/test/built-ins/RegExp/prototype/sticky/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/sticky/this-val-invalid-obj.js @@ -26,3 +26,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { sticky.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + sticky.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/sticky/this-val-non-obj.js b/test/built-ins/RegExp/prototype/sticky/this-val-non-obj.js index 81602dce4a..849e738ccc 100644 --- a/test/built-ins/RegExp/prototype/sticky/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/sticky/this-val-non-obj.js @@ -38,3 +38,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { sticky.call(4); }); + +assert.throws(TypeError, function() { + sticky.call(4n); +}, 'bigint'); diff --git a/test/built-ins/RegExp/prototype/unicode/this-val-invalid-obj.js b/test/built-ins/RegExp/prototype/unicode/this-val-invalid-obj.js index 2c938a8852..2b688fbde9 100644 --- a/test/built-ins/RegExp/prototype/unicode/this-val-invalid-obj.js +++ b/test/built-ins/RegExp/prototype/unicode/this-val-invalid-obj.js @@ -26,3 +26,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { unicode.call(arguments); }, 'arguments object'); + +assert.throws(TypeError, function() { + unicode.call(() => {}); +}, 'function object'); diff --git a/test/built-ins/RegExp/prototype/unicode/this-val-non-obj.js b/test/built-ins/RegExp/prototype/unicode/this-val-non-obj.js index bd4d518e1c..77ba07ab47 100644 --- a/test/built-ins/RegExp/prototype/unicode/this-val-non-obj.js +++ b/test/built-ins/RegExp/prototype/unicode/this-val-non-obj.js @@ -38,3 +38,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { unicode.call(4); }); + +assert.throws(TypeError, function() { + unicode.call(4n); +}, 'bigint');