diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-end-as-symbol.js b/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-end-as-symbol.js index 084c9ac1e756ecebce17172d4955f6f2feeb6dbc..69ad955b68fe5d31e0757e93f60f170fb353f618 100644 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-end-as-symbol.js +++ b/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-end-as-symbol.js @@ -33,6 +33,6 @@ var end = Symbol(1); testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(); assert.throws(TypeError, function() { - sample.fill(1, 0, end); + sample.fill(1n, 0, end); }); }); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-start-as-symbol.js b/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-start-as-symbol.js index d95c9a30d87e0b328f7a6c90ab28b626e5a2167a..73c241786768ceb071f5de9fae89727fa8dc4f87 100644 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-start-as-symbol.js +++ b/test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-start-as-symbol.js @@ -32,6 +32,6 @@ var start = Symbol(1); testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(); assert.throws(TypeError, function() { - sample.fill(1, start); + sample.fill(1n, start); }); }); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer.js b/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer.js index 990e4b01a8a3bc76df961c8cc5498a10b0ce5a4b..0239cca34aa45fb9564e90447fd7f70db7c77150 100644 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer.js @@ -23,6 +23,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); $DETACHBUFFER(sample.buffer); assert.throws(TypeError, function() { - sample.includes(0); + sample.includes(0n); }); }); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js b/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js index a59b7084a562c7b25b2177900e33a378661b4abe..a36d4d415b67fc53524ec60e062187b0eb53fa4d 100644 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js +++ b/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-equal-or-greater-length-returns-false.js @@ -31,6 +31,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample; sample = new TA(42); - assert.sameValue(sample.includes(0, 42), false); - assert.sameValue(sample.includes(0, 43), false); + assert.sameValue(sample.includes(0n, 42), false); + assert.sameValue(sample.includes(0n, 43), false); }); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/length-zero-returns-false.js b/test/built-ins/TypedArray/prototype/includes/BigInt/length-zero-returns-false.js index 9c06fa6c1dda52f689025c2332fcf10e02b585de..1ceaa37bc919ac9e5c23cee6d1986b5f8fa4cde3 100644 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/length-zero-returns-false.js +++ b/test/built-ins/TypedArray/prototype/includes/BigInt/length-zero-returns-false.js @@ -33,7 +33,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.sameValue(sample.includes(0), false, "returns false"); assert.sameValue(sample.includes(), false, "returns false - no arg"); assert.sameValue( - sample.includes(0, fromIndex), false, + sample.includes(0n, fromIndex), false, "length is checked before ToInteger(fromIndex)" ); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer.js index 1d44ab16d85d59d6f283982235fe596abe0b41fc..757baf77c7c44935b099ea05ea24a09934822c03 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer.js @@ -23,6 +23,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); $DETACHBUFFER(sample.buffer); assert.throws(TypeError, function() { - sample.indexOf(0); + sample.indexOf(0n); }); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-equal-or-greater-length-returns-minus-one.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-equal-or-greater-length-returns-minus-one.js index 022f4a15679ba6dd1c3a554526a1cfa47ffd81ee..a7bc3e50a0e95a954682af59c838e893ce2cc703 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-equal-or-greater-length-returns-minus-one.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-equal-or-greater-length-returns-minus-one.js @@ -25,6 +25,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample; sample = new TA(42); - assert.sameValue(sample.indexOf(0, 42), -1); - assert.sameValue(sample.indexOf(0, 43), -1); + assert.sameValue(sample.indexOf(0n, 42), -1); + assert.sameValue(sample.indexOf(0n, 43), -1); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length-zero-returns-minus-one.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/length-zero-returns-minus-one.js index 510a58f7bbf1575a180e0d5c6427c9ac5c49a345..2c679e491450e951761eb859b143fe8ae16509fe 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length-zero-returns-minus-one.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/length-zero-returns-minus-one.js @@ -29,9 +29,9 @@ var fromIndex = { testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(); - assert.sameValue(sample.indexOf(0), -1, "returns -1"); + assert.sameValue(sample.indexOf(0n), -1, "returns -1"); assert.sameValue( - sample.indexOf(0, fromIndex), -1, + sample.indexOf(0n, fromIndex), -1, "length is checked before ToInteger(fromIndex)" ); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js index 843a22a29cdee6e4991469e19d9d382393be6429..a4e3dfccbc19630cbba71970e2b4f8e2533d11c8 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js @@ -27,6 +27,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); assert.throws(TypeError, function() { - sample.indexOf(7, fromIndex); + sample.indexOf(7n, fromIndex); }); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex.js index 751b482b93aa6fd1c40055841588896871b3369d..f5063efa0615d77504cbd630428e9318b8fdeba5 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/return-abrupt-tointeger-fromindex.js @@ -31,6 +31,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); assert.throws(Test262Error, function() { - sample.indexOf(7, fromIndex); + sample.indexOf(7n, fromIndex); }); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer.js index 616f96ce5a95214eb4f84f32fedfa3b85017950e..70e471654c09c89187bae093cd83bf8a04b9ff4c 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer.js @@ -23,6 +23,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); $DETACHBUFFER(sample.buffer); assert.throws(TypeError, function() { - sample.lastIndexOf(0); + sample.lastIndexOf(0n); }); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length-zero-returns-minus-one.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length-zero-returns-minus-one.js index 07fc5da7266fb0d5cddc434f4d5e1e1b5b5a888e..9676e2d5df08147d351500d2810802ddaf112dde 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length-zero-returns-minus-one.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length-zero-returns-minus-one.js @@ -31,7 +31,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(); assert.sameValue(sample.lastIndexOf(0), -1, "returns -1"); assert.sameValue( - sample.lastIndexOf(0, fromIndex), -1, + sample.lastIndexOf(0n, fromIndex), -1, "length is checked before ToInteger(fromIndex)" ); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js index 67c1ea4c62a78866b419b0a9f6da813e695ce0d7..5f4f01d63d38bd3c3e6238cba691c30bea2f7074 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex-symbol.js @@ -27,6 +27,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); assert.throws(TypeError, function() { - sample.lastIndexOf(7, fromIndex); + sample.lastIndexOf(7n, fromIndex); }); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex.js index 2f3465b343a1614ad24cb3cffd21c9ff8c07a9a5..ca2eb82d71611bbf49c1924631a729d74795cd70 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/return-abrupt-tointeger-fromindex.js @@ -31,6 +31,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(1); assert.throws(Test262Error, function() { - sample.lastIndexOf(7, fromIndex); + sample.lastIndexOf(7n, fromIndex); }); });