fix: use verifyProperty

This commit is contained in:
rwaldron 2021-07-19 13:26:09 -04:00 committed by Rick Waldron
parent 29cb47e376
commit bb0ad134f5
4 changed files with 17 additions and 15 deletions

View File

@ -8,6 +8,8 @@ includes: [propertyHelper.js]
features: [callable-boundary-realms] features: [callable-boundary-realms]
---*/ ---*/
verifyNotEnumerable(this, "Realm"); verifyProperty(this, "Realm", {
verifyWritable(this, "Realm"); enumerable: false,
verifyConfigurable(this, "Realm"); writable: true,
configurable: true,
});

View File

@ -20,8 +20,9 @@ includes: [propertyHelper.js]
features: [callable-boundary-realms] features: [callable-boundary-realms]
---*/ ---*/
assert.sameValue(Realm.length, 0, "The value of `Realm.length` is `0`"); verifyProperty(Realm, "length", {
value: 0,
verifyNotEnumerable(Realm, "length"); enumerable: false,
verifyNotWritable(Realm, "length"); writable: false,
verifyConfigurable(Realm, "length"); configurable: true,
});

View File

@ -17,8 +17,9 @@ includes: [propertyHelper.js]
features: [callable-boundary-realms] features: [callable-boundary-realms]
---*/ ---*/
assert.sameValue(Realm.name, "Realm", "The value of `Realm.name` is `'Realm'`"); verifyProperty(Realm, "name", {
value: "Realm",
verifyNotEnumerable(Realm, "name"); enumerable: false,
verifyNotWritable(Realm, "name"); writable: false,
verifyConfigurable(Realm, "name"); configurable: true,
});

View File

@ -20,8 +20,6 @@ includes: [propertyHelper.js]
features: [callable-boundary-realms] features: [callable-boundary-realms]
---*/ ---*/
assert.sameValue(Realm.prototype.evaluate.length, 1, "The value of `Realm.prototype.evaluate.length` is `1`");
verifyProperty(Realm.prototype.evaluate, "length", { verifyProperty(Realm.prototype.evaluate, "length", {
value: 1, value: 1,
enumerable: false, enumerable: false,