diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/log2')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log2/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log2/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log2/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/log2/length.js b/js/src/tests/test262/built-ins/Math/log2/length.js index 4763011f45..0ba4c00ece 100644 --- a/js/src/tests/test262/built-ins/Math/log2/length.js +++ b/js/src/tests/test262/built-ins/Math/log2/length.js @@ -21,10 +21,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log2.length, 1); - -verifyNotEnumerable(Math.log2, "length"); -verifyNotWritable(Math.log2, "length"); -verifyConfigurable(Math.log2, "length"); +verifyProperty(Math.log2, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log2/name.js b/js/src/tests/test262/built-ins/Math/log2/name.js index 33af36ac29..1c2adc899f 100644 --- a/js/src/tests/test262/built-ins/Math/log2/name.js +++ b/js/src/tests/test262/built-ins/Math/log2/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log2.name, "log2"); - -verifyNotEnumerable(Math.log2, "name"); -verifyNotWritable(Math.log2, "name"); -verifyConfigurable(Math.log2, "name"); +verifyProperty(Math.log2, "name", { + value: "log2", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log2/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/log2/not-a-constructor.js index 1a40c155c9..6e28337931 100644 --- a/js/src/tests/test262/built-ins/Math/log2/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/log2/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.log2), false, 'isConstructor(Math.log2) must assert.throws(TypeError, () => { new Math.log2(); -}, '`new Math.log2()` throws TypeError'); +}); reportCompare(0, 0); |