diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Reflect/set')
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/Reflect/set/length.js b/js/src/tests/test262/built-ins/Reflect/set/length.js index e8e0d537c7..cab048f500 100644 --- a/js/src/tests/test262/built-ins/Reflect/set/length.js +++ b/js/src/tests/test262/built-ins/Reflect/set/length.js @@ -12,13 +12,11 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.set] ---*/ -assert.sameValue( - Reflect.set.length, 3, - 'The value of `Reflect.set.length` is `3`' -); - -verifyNotEnumerable(Reflect.set, 'length'); -verifyNotWritable(Reflect.set, 'length'); -verifyConfigurable(Reflect.set, 'length'); +verifyProperty(Reflect.set, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/set/name.js b/js/src/tests/test262/built-ins/Reflect/set/name.js index 999e652586..26db6f5186 100644 --- a/js/src/tests/test262/built-ins/Reflect/set/name.js +++ b/js/src/tests/test262/built-ins/Reflect/set/name.js @@ -13,13 +13,11 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.set] ---*/ -assert.sameValue( - Reflect.set.name, 'set', - 'The value of `Reflect.set.name` is `"set"`' -); - -verifyNotEnumerable(Reflect.set, 'name'); -verifyNotWritable(Reflect.set, 'name'); -verifyConfigurable(Reflect.set, 'name'); +verifyProperty(Reflect.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Reflect/set/not-a-constructor.js b/js/src/tests/test262/built-ins/Reflect/set/not-a-constructor.js index c632ce534f..ae57a7c824 100644 --- a/js/src/tests/test262/built-ins/Reflect/set/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Reflect/set/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Reflect.set), false, 'isConstructor(Reflect.set) assert.throws(TypeError, () => { new Reflect.set({}); -}, '`new Reflect.set({})` throws TypeError'); +}); reportCompare(0, 0); |