summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Reflect/get
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/test262/built-ins/Reflect/get
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/test262/built-ins/Reflect/get')
-rw-r--r--js/src/tests/test262/built-ins/Reflect/get/length.js14
-rw-r--r--js/src/tests/test262/built-ins/Reflect/get/name.js14
-rw-r--r--js/src/tests/test262/built-ins/Reflect/get/not-a-constructor.js2
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Reflect/get/length.js b/js/src/tests/test262/built-ins/Reflect/get/length.js
index 615f35d6cc..7a2caa9205 100644
--- a/js/src/tests/test262/built-ins/Reflect/get/length.js
+++ b/js/src/tests/test262/built-ins/Reflect/get/length.js
@@ -12,13 +12,11 @@ includes: [propertyHelper.js]
features: [Reflect]
---*/
-assert.sameValue(
- Reflect.get.length, 2,
- 'The value of `Reflect.get.length` is `2`'
-);
-
-verifyNotEnumerable(Reflect.get, 'length');
-verifyNotWritable(Reflect.get, 'length');
-verifyConfigurable(Reflect.get, 'length');
+verifyProperty(Reflect.get, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Reflect/get/name.js b/js/src/tests/test262/built-ins/Reflect/get/name.js
index d474d98e0f..1d573c56ac 100644
--- a/js/src/tests/test262/built-ins/Reflect/get/name.js
+++ b/js/src/tests/test262/built-ins/Reflect/get/name.js
@@ -13,13 +13,11 @@ includes: [propertyHelper.js]
features: [Reflect]
---*/
-assert.sameValue(
- Reflect.get.name, 'get',
- 'The value of `Reflect.get.name` is `"get"`'
-);
-
-verifyNotEnumerable(Reflect.get, 'name');
-verifyNotWritable(Reflect.get, 'name');
-verifyConfigurable(Reflect.get, 'name');
+verifyProperty(Reflect.get, "name", {
+ value: "get",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Reflect/get/not-a-constructor.js b/js/src/tests/test262/built-ins/Reflect/get/not-a-constructor.js
index 73635058ff..66b468dc80 100644
--- a/js/src/tests/test262/built-ins/Reflect/get/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Reflect/get/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Reflect.get), false, 'isConstructor(Reflect.get)
assert.throws(TypeError, () => {
new Reflect.get({}, '');
-}, '`new Reflect.get({}, \'\')` throws TypeError');
+});
reportCompare(0, 0);