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 0f0d3909b93..4998f489eae 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 c400b1ba6c6..470d192dab3 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 2211ae013dc..bb553dcb029 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 1255c17fefc..dc9e85cfbc6 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 a1c0515b61a..c68b4287348 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 ac5b596a664..27c54cf5dde 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 325c9ca4aac..2434c72853a 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 6fec080d1b9..a3d5c65b882 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 b7c77f162e2..edb0410a886 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 815e973a85f..4343cf6795e 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 c62940c8c5a..430c9049278 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 59cdfa49606..f78e78a9b3c 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 956e700625f..e5ef0d99086 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 f982ecccf4c..caf81e07ca8 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 81602dce4a9..849e738ccc7 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 2c938a8852a..2b688fbde93 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 bd4d518e1c1..77ba07ab479 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');