diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Reflect/construct')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Reflect/construct/length.js b/js/src/tests/test262/built-ins/Reflect/construct/length.js index 72e142753f..07b9663e53 100644 --- a/js/src/tests/test262/built-ins/Reflect/construct/length.js +++ b/js/src/tests/test262/built-ins/Reflect/construct/length.js @@ -12,13 +12,11 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.construct] ---*/ -assert.sameValue( - Reflect.construct.length, 2, - 'The value of `Reflect.construct.length` is `2`' -); - -verifyNotEnumerable(Reflect.construct, 'length'); -verifyNotWritable(Reflect.construct, 'length'); -verifyConfigurable(Reflect.construct, 'length'); +verifyProperty(Reflect.construct, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/construct/name.js b/js/src/tests/test262/built-ins/Reflect/construct/name.js index ff1d6c51c5..61f2e5e74c 100644 --- a/js/src/tests/test262/built-ins/Reflect/construct/name.js +++ b/js/src/tests/test262/built-ins/Reflect/construct/name.js @@ -13,13 +13,11 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.construct] ---*/ -assert.sameValue( - Reflect.construct.name, 'construct', - 'The value of `Reflect.construct.name` is `"construct"`' -); - -verifyNotEnumerable(Reflect.construct, 'name'); -verifyNotWritable(Reflect.construct, 'name'); -verifyConfigurable(Reflect.construct, 'name'); +verifyProperty(Reflect.construct, "name", { + value: "construct", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/construct/not-a-constructor.js b/js/src/tests/test262/built-ins/Reflect/construct/not-a-constructor.js index 16b99500a9..6d0f286fbb 100644 --- a/js/src/tests/test262/built-ins/Reflect/construct/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Reflect/construct/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Reflect.construct), false, 'isConstructor(Reflect assert.throws(TypeError, () => { new Reflect.construct(Function, [], Function); -}, '`new Reflect.construct(Function, [], Function)` throws TypeError'); +}); reportCompare(0, 0); |