From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../internals/Delete/BigInt/detached-buffer-key-is-symbol.js | 1 + .../internals/Delete/BigInt/detached-buffer-realm.js | 1 + .../internals/Delete/BigInt/indexed-value-ab-strict-strict.js | 8 ++++---- .../internals/Delete/BigInt/indexed-value-sab-non-strict.js | 2 +- .../internals/Delete/BigInt/indexed-value-sab-strict-strict.js | 2 +- .../Delete/BigInt/key-is-not-canonical-index-strict-strict.js | 2 +- .../Delete/BigInt/key-is-not-minus-zero-strict-strict.js | 2 +- .../Delete/BigInt/key-is-not-numeric-index-get-throws.js | 2 +- .../Delete/BigInt/key-is-not-numeric-index-strict-strict.js | 2 +- .../internals/Delete/BigInt/key-is-out-of-bounds-strict-strict.js | 4 ++-- 10 files changed, 14 insertions(+), 12 deletions(-) (limited to 'js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt') diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-key-is-symbol.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-key-is-symbol.js index ed0dddfd7b..8d72613876 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-key-is-symbol.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-key-is-symbol.js @@ -1,3 +1,4 @@ +// |reftest| shell-option(--enable-float16array) // Copyright (C) 2020 Rick Waldron. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-realm.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-realm.js index 05cc9e7246..6baca7b13b 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-realm.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/detached-buffer-realm.js @@ -1,3 +1,4 @@ +// |reftest| shell-option(--enable-float16array) // Copyright (C) 2020 Rick Waldron. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict-strict.js index b54d66cca8..61bd2918d0 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict-strict.js @@ -40,16 +40,16 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample["1"]; - }, '`delete sample["1"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-non-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-non-strict.js index 0f63640193..7b591a085e 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-non-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-non-strict.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally +// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally // Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-strict-strict.js index 6677f96548..cd3aaaa64e 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-sab-strict-strict.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally +// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally 'use strict'; // Copyright (C) 2020 Rick Waldron. All rights reserved. // Copyright (C) 2017 Mozilla Corporation. All rights reserved. diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict-strict.js index 4435c4ac17..52a1d0c371 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict-strict.js @@ -60,7 +60,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample[key]; - }, '`delete sample[key]` throws TypeError'); + }); delete TypedArray.prototype[key]; }); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict-strict.js index c0e42e745e..4225c3761e 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict-strict.js @@ -43,7 +43,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.sameValue(delete sample["-0"], true, 'The value of `delete sample["-0"]` is true'); assert.throws(TypeError, () => { delete sample[-0]; - }, '`delete sample[-0]` throws TypeError'); + }); }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js index 2cd35158c4..ba58f7e2bb 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js @@ -34,7 +34,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(Test262Error, () => { sample.foo; - }, '`sample.foo` throws Test262Error'); + }); }); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict-strict.js index 2a9f7171e9..69f1052a0f 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict-strict.js @@ -42,7 +42,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample.bar; - }, '`delete sample.bar` throws TypeError'); + }); assert.sameValue(delete sample.baz, true, 'The value of `delete sample.baz` is true'); }); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict-strict.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict-strict.js index 8d67ba003f..d5b4a54f9b 100644 --- a/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict-strict.js +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict-strict.js @@ -44,11 +44,11 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.sameValue(delete sample["1"], true, 'The value of `delete sample["1"]` is true'); assert.sameValue(delete sample[1], true, 'The value of `delete sample[1]` is true'); -- cgit v1.2.3