diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/clz32')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/clz32/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/clz32/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Math/clz32/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Math/clz32/length.js b/js/src/tests/test262/built-ins/Math/clz32/length.js index 038975b13d..b139a9f06d 100644 --- a/js/src/tests/test262/built-ins/Math/clz32/length.js +++ b/js/src/tests/test262/built-ins/Math/clz32/length.js @@ -22,10 +22,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.clz32.length, 1); - -verifyNotEnumerable(Math.clz32, "length"); -verifyNotWritable(Math.clz32, "length"); -verifyConfigurable(Math.clz32, "length"); +verifyProperty(Math.clz32, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/clz32/name.js b/js/src/tests/test262/built-ins/Math/clz32/name.js index 2862f87439..0ba3af0460 100644 --- a/js/src/tests/test262/built-ins/Math/clz32/name.js +++ b/js/src/tests/test262/built-ins/Math/clz32/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.clz32.name, "clz32"); - -verifyNotEnumerable(Math.clz32, "name"); -verifyNotWritable(Math.clz32, "name"); -verifyConfigurable(Math.clz32, "name"); +verifyProperty(Math.clz32, "name", { + value: "clz32", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Math/clz32/not-a-constructor.js b/js/src/tests/test262/built-ins/Math/clz32/not-a-constructor.js index 2bff88114f..c1a38ec793 100644 --- a/js/src/tests/test262/built-ins/Math/clz32/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Math/clz32/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Math.clz32), false, 'isConstructor(Math.clz32) mu assert.throws(TypeError, () => { new Math.clz32(); -}, '`new Math.clz32()` throws TypeError'); +}); reportCompare(0, 0); |