summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/parseInt
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/parseInt')
-rw-r--r--js/src/tests/test262/built-ins/parseInt/name.js11
-rw-r--r--js/src/tests/test262/built-ins/parseInt/not-a-constructor.js2
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/parseInt/name.js b/js/src/tests/test262/built-ins/parseInt/name.js
index 973b0707da..3d0fc3e513 100644
--- a/js/src/tests/test262/built-ins/parseInt/name.js
+++ b/js/src/tests/test262/built-ins/parseInt/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(parseInt.name, "parseInt", 'The value of parseInt.name is "parseInt"');
-
-verifyNotEnumerable(parseInt, "name");
-verifyNotWritable(parseInt, "name");
-verifyConfigurable(parseInt, "name");
+verifyProperty(parseInt, "name", {
+ value: "parseInt",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js b/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js
index db318e6a34..9bb720d6c0 100644
--- a/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/parseInt/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(parseInt), false, 'isConstructor(parseInt) must r
assert.throws(TypeError, () => {
new parseInt(1);
-}, '`new parseInt(1)` throws TypeError');
+});
reportCompare(0, 0);