summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js')
-rw-r--r--js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js b/js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js
index 8c1830f5fd..83e8a70334 100644
--- a/js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js
+++ b/js/src/tests/test262/built-ins/Number/prototype/valueOf/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Number.prototype.valueOf.name, "valueOf");
-
-verifyNotEnumerable(Number.prototype.valueOf, "name");
-verifyNotWritable(Number.prototype.valueOf, "name");
-verifyConfigurable(Number.prototype.valueOf, "name");
+verifyProperty(Number.prototype.valueOf, "name", {
+ value: "valueOf",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);