diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/getPrototypeOf')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/getPrototypeOf/name.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Object/getPrototypeOf/not-a-constructor.js | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/src/tests/test262/built-ins/Object/getPrototypeOf/name.js b/js/src/tests/test262/built-ins/Object/getPrototypeOf/name.js index ad6ed3dfd7..5760387715 100644 --- a/js/src/tests/test262/built-ins/Object/getPrototypeOf/name.js +++ b/js/src/tests/test262/built-ins/Object/getPrototypeOf/name.js @@ -19,10 +19,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Object.getPrototypeOf.name, "getPrototypeOf"); - -verifyNotEnumerable(Object.getPrototypeOf, "name"); -verifyNotWritable(Object.getPrototypeOf, "name"); -verifyConfigurable(Object.getPrototypeOf, "name"); +verifyProperty(Object.getPrototypeOf, "name", { + value: "getPrototypeOf", + writable: false, + enumerable: false, + configurable: true, +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Object/getPrototypeOf/not-a-constructor.js b/js/src/tests/test262/built-ins/Object/getPrototypeOf/not-a-constructor.js index a40dd4beca..9bf94e49a5 100644 --- a/js/src/tests/test262/built-ins/Object/getPrototypeOf/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Object/getPrototypeOf/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getPrototypeOf({}); -}, '`new Object.getPrototypeOf({})` throws TypeError'); +}); reportCompare(0, 0); |