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