diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/isNaN')
-rw-r--r-- | js/src/tests/test262/built-ins/isNaN/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/isNaN/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/isNaN/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/isNaN/length.js b/js/src/tests/test262/built-ins/isNaN/length.js index 01e06d1602..f323904d00 100644 --- a/js/src/tests/test262/built-ins/isNaN/length.js +++ b/js/src/tests/test262/built-ins/isNaN/length.js @@ -8,10 +8,11 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(isNaN.length, 1, "The value of `isNaN.length` is `1`"); - -verifyNotEnumerable(isNaN, "length"); -verifyNotWritable(isNaN, "length"); -verifyConfigurable(isNaN, "length"); +verifyProperty(isNaN, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/isNaN/name.js b/js/src/tests/test262/built-ins/isNaN/name.js index 967a74566e..515478acae 100644 --- a/js/src/tests/test262/built-ins/isNaN/name.js +++ b/js/src/tests/test262/built-ins/isNaN/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(isNaN.name, "isNaN"); - -verifyNotEnumerable(isNaN, "name"); -verifyNotWritable(isNaN, "name"); -verifyConfigurable(isNaN, "name"); +verifyProperty(isNaN, "name", { + value: "isNaN", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/isNaN/not-a-constructor.js b/js/src/tests/test262/built-ins/isNaN/not-a-constructor.js index 840489d16b..ca7970390e 100644 --- a/js/src/tests/test262/built-ins/isNaN/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/isNaN/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(isNaN), false, 'isConstructor(isNaN) must return assert.throws(TypeError, () => { new isNaN(1); -}, '`new isNaN(1)` throws TypeError'); +}); reportCompare(0, 0); |