diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/log')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/log/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/log/length.js b/js/src/tests/test262/built-ins/Math/log/length.js index e23e758bff..b25b3f7771 100644 --- a/js/src/tests/test262/built-ins/Math/log/length.js +++ b/js/src/tests/test262/built-ins/Math/log/length.js @@ -22,10 +22,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log.length, 1); - -verifyNotEnumerable(Math.log, "length"); -verifyNotWritable(Math.log, "length"); -verifyConfigurable(Math.log, "length"); +verifyProperty(Math.log, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log/name.js b/js/src/tests/test262/built-ins/Math/log/name.js index 35009aa9d3..9822c1d027 100644 --- a/js/src/tests/test262/built-ins/Math/log/name.js +++ b/js/src/tests/test262/built-ins/Math/log/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log.name, "log"); - -verifyNotEnumerable(Math.log, "name"); -verifyNotWritable(Math.log, "name"); -verifyConfigurable(Math.log, "name"); +verifyProperty(Math.log, "name", { + value: "log", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/log/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/log/not-a-constructor.js index 2fe1ae7ee6..a0849c7b30 100644 --- a/js/src/tests/test262/built-ins/Math/log/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/log/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.log), false, 'isConstructor(Math.log) must r assert.throws(TypeError, () => { new Math.log(); -}, '`new Math.log()` throws TypeError'); +}); reportCompare(0, 0); |