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]
---*/
verifyNotEnumerable(this, "Realm");
verifyWritable(this, "Realm");
verifyConfigurable(this, "Realm");
verifyProperty(this, "Realm", {
enumerable: false,
writable: true,
configurable: true,
});

View File

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

View File

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

View File

@ -20,8 +20,6 @@ includes: [propertyHelper.js]
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", {
value: 1,
enumerable: false,