fix: use verifyProperty

This commit is contained in:
rwaldron 2021-07-19 13:20:43 -04:00 committed by Rick Waldron
parent d29fba05f9
commit a6b2aecaab
6 changed files with 34 additions and 24 deletions

View File

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

View File

@ -22,6 +22,9 @@ features: [callable-boundary-realms]
assert.sameValue(Realm.prototype.evaluate.length, 1, "The value of `Realm.prototype.evaluate.length` is `1`");
verifyNotEnumerable(Realm.prototype.evaluate, "length");
verifyNotWritable(Realm.prototype.evaluate, "length");
verifyConfigurable(Realm.prototype.evaluate, "length");
verifyProperty(Realm.prototype.evaluate, "length", {
value: 1,
enumerable: false,
writable: false,
configurable: true,
});

View File

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

View File

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

View File

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

View File

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