summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/map
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/map')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/map/callbackfn-resize-arraybuffer.js2
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/map/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/map/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/map/not-a-constructor.js2
4 files changed, 14 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/map/callbackfn-resize-arraybuffer.js b/js/src/tests/test262/built-ins/Array/prototype/map/callbackfn-resize-arraybuffer.js
index ec8caa847e..5496a2090a 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/map/callbackfn-resize-arraybuffer.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/map/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/map/length.js b/js/src/tests/test262/built-ins/Array/prototype/map/length.js
index f0402be9c5..9eacb86642 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/map/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/map/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.map.length, 1);
-
-verifyNotEnumerable(Array.prototype.map, 'length');
-verifyNotWritable(Array.prototype.map, 'length');
-verifyConfigurable(Array.prototype.map, 'length');
+verifyProperty(Array.prototype.map, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/map/name.js b/js/src/tests/test262/built-ins/Array/prototype/map/name.js
index 75a94bbb83..c18af83c3f 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/map/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/map/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.map.name, "map");
-
-verifyNotEnumerable(Array.prototype.map, "name");
-verifyNotWritable(Array.prototype.map, "name");
-verifyConfigurable(Array.prototype.map, "name");
+verifyProperty(Array.prototype.map, "name", {
+ value: "map",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/map/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/map/not-a-constructor.js
index 98945bd366..8c54276eea 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/map/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/map/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Array.prototype.map), false, 'isConstructor(Array
assert.throws(TypeError, () => {
new Array.prototype.map(() => {});
-}, '`new Array.prototype.map(() => {})` throws TypeError');
+});
reportCompare(0, 0);