diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/log1p')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log1p/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log1p/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log1p/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/log1p/length.js b/js/src/tests/test262/built-ins/Math/log1p/length.js index 40327f636c..51dbc6d86f 100644 --- a/js/src/tests/test262/built-ins/Math/log1p/length.js +++ b/js/src/tests/test262/built-ins/Math/log1p/length.js @@ -21,10 +21,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log1p.length, 1); - -verifyNotEnumerable(Math.log1p, "length"); -verifyNotWritable(Math.log1p, "length"); -verifyConfigurable(Math.log1p, "length"); +verifyProperty(Math.log1p, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log1p/name.js b/js/src/tests/test262/built-ins/Math/log1p/name.js index 9287af89ed..de9e469c0a 100644 --- a/js/src/tests/test262/built-ins/Math/log1p/name.js +++ b/js/src/tests/test262/built-ins/Math/log1p/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log1p.name, "log1p"); - -verifyNotEnumerable(Math.log1p, "name"); -verifyNotWritable(Math.log1p, "name"); -verifyConfigurable(Math.log1p, "name"); +verifyProperty(Math.log1p, "name", { + value: "log1p", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log1p/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/log1p/not-a-constructor.js index f89122aac0..fd3e9d10d8 100644 --- a/js/src/tests/test262/built-ins/Math/log1p/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/log1p/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.log1p), false, 'isConstructor(Math.log1p) mu assert.throws(TypeError, () => { new Math.log1p(); -}, '`new Math.log1p()` throws TypeError'); +}); reportCompare(0, 0); |