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