diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/parseFloat')
-rw-r--r-- | js/src/tests/test262/built-ins/parseFloat/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/parseFloat/not-a-constructor.js | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/parseFloat/name.js b/js/src/tests/test262/built-ins/parseFloat/name.js index 05b701e234..75df364955 100644 --- a/js/src/tests/test262/built-ins/parseFloat/name.js +++ b/js/src/tests/test262/built-ins/parseFloat/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(parseFloat.name, "parseFloat"); - -verifyNotEnumerable(parseFloat, "name"); -verifyNotWritable(parseFloat, "name"); -verifyConfigurable(parseFloat, "name"); +verifyProperty(parseFloat, "name", { + value: "parseFloat", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/parseFloat/not-a-constructor.js b/js/src/tests/test262/built-ins/parseFloat/not-a-constructor.js index 4bbe63515e..ffab5bc31c 100644 --- a/js/src/tests/test262/built-ins/parseFloat/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/parseFloat/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(parseFloat), false, 'isConstructor(parseFloat) mu assert.throws(TypeError, () => { new parseFloat(1); -}, '`new parseFloat(1)` throws TypeError'); +}); reportCompare(0, 0); |