summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/hypot
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/hypot')
-rw-r--r--js/src/tests/test262/built-ins/Math/hypot/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Math/hypot/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Math/hypot/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/hypot/length.js b/js/src/tests/test262/built-ins/Math/hypot/length.js
index 9800debc1a..7a29ac886f 100644
--- a/js/src/tests/test262/built-ins/Math/hypot/length.js
+++ b/js/src/tests/test262/built-ins/Math/hypot/length.js
@@ -22,10 +22,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Math.hypot.length, 2);
-
-verifyNotEnumerable(Math.hypot, "length");
-verifyNotWritable(Math.hypot, "length");
-verifyConfigurable(Math.hypot, "length");
+verifyProperty(Math.hypot, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Math/hypot/name.js b/js/src/tests/test262/built-ins/Math/hypot/name.js
index 46d395ca06..51224f04e0 100644
--- a/js/src/tests/test262/built-ins/Math/hypot/name.js
+++ b/js/src/tests/test262/built-ins/Math/hypot/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Math.hypot.name, "hypot");
-
-verifyNotEnumerable(Math.hypot, "name");
-verifyNotWritable(Math.hypot, "name");
-verifyConfigurable(Math.hypot, "name");
+verifyProperty(Math.hypot, "name", {
+ value: "hypot",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Math/hypot/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/hypot/not-a-constructor.js
index 21ff4ba634..7e75ae29ea 100644
--- a/js/src/tests/test262/built-ins/Math/hypot/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Math/hypot/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.hypot), false, 'isConstructor(Math.hypot) mu
assert.throws(TypeError, () => {
new Math.hypot();
-}, '`new Math.hypot()` throws TypeError');
+});
reportCompare(0, 0);