diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/test262/built-ins/Math/sqrt | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-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/Math/sqrt')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sqrt/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sqrt/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/sqrt/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/sqrt/length.js b/js/src/tests/test262/built-ins/Math/sqrt/length.js index 566bbf47b5..ebc36e2be8 100644 --- a/js/src/tests/test262/built-ins/Math/sqrt/length.js +++ b/js/src/tests/test262/built-ins/Math/sqrt/length.js @@ -22,10 +22,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sqrt.length, 1); - -verifyNotEnumerable(Math.sqrt, "length"); -verifyNotWritable(Math.sqrt, "length"); -verifyConfigurable(Math.sqrt, "length"); +verifyProperty(Math.sqrt, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/sqrt/name.js b/js/src/tests/test262/built-ins/Math/sqrt/name.js index 0cca2fc7af..5278d51fd5 100644 --- a/js/src/tests/test262/built-ins/Math/sqrt/name.js +++ b/js/src/tests/test262/built-ins/Math/sqrt/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sqrt.name, "sqrt"); - -verifyNotEnumerable(Math.sqrt, "name"); -verifyNotWritable(Math.sqrt, "name"); -verifyConfigurable(Math.sqrt, "name"); +verifyProperty(Math.sqrt, "name", { + value: "sqrt", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/sqrt/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/sqrt/not-a-constructor.js index e40a2f5d55..599020a14b 100644 --- a/js/src/tests/test262/built-ins/Math/sqrt/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/sqrt/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.sqrt), false, 'isConstructor(Math.sqrt) must assert.throws(TypeError, () => { new Math.sqrt(); -}, '`new Math.sqrt()` throws TypeError'); +}); reportCompare(0, 0); |