summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/some
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/some')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/some/callbackfn-resize-arraybuffer.js2
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/some/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/some/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/some/not-a-constructor.js2
4 files changed, 14 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/some/callbackfn-resize-arraybuffer.js b/js/src/tests/test262/built-ins/Array/prototype/some/callbackfn-resize-arraybuffer.js
index 0f42d15717..009ee20914 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/some/callbackfn-resize-arraybuffer.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/some/callbackfn-resize-arraybuffer.js
@@ -1,4 +1,4 @@
-// |reftest| shell-option(--enable-arraybuffer-resizable) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
+// |reftest| shell-option(--enable-arraybuffer-resizable) shell-option(--enable-float16array) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
// Copyright (C) 2021 the V8 project authors. 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/Array/prototype/some/length.js b/js/src/tests/test262/built-ins/Array/prototype/some/length.js
index 4afccd4124..91e160e62e 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/some/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/some/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.some.length, 1);
-
-verifyNotEnumerable(Array.prototype.some, 'length');
-verifyNotWritable(Array.prototype.some, 'length');
-verifyConfigurable(Array.prototype.some, 'length');
+verifyProperty(Array.prototype.some, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/some/name.js b/js/src/tests/test262/built-ins/Array/prototype/some/name.js
index 3ccefd3f61..1c6748df51 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/some/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/some/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.some.name, "some");
-
-verifyNotEnumerable(Array.prototype.some, "name");
-verifyNotWritable(Array.prototype.some, "name");
-verifyConfigurable(Array.prototype.some, "name");
+verifyProperty(Array.prototype.some, "name", {
+ value: "some",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/some/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/some/not-a-constructor.js
index cff54f8d96..ea2d642790 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/some/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/some/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Array.prototype.some), false, 'isConstructor(Arra
assert.throws(TypeError, () => {
new Array.prototype.some(() => {});
-}, '`new Array.prototype.some(() => {})` throws TypeError');
+});
reportCompare(0, 0);