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] features: [callable-boundary-realms]
---*/ ---*/
verifyNotEnumerable(Realm.prototype, "evaluate"); verifyProperty(Realm.prototype, "evaluate", {
verifyWritable(Realm.prototype, "evaluate"); enumerable: false,
verifyConfigurable(Realm.prototype, "evaluate"); 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`"); assert.sameValue(Realm.prototype.evaluate.length, 1, "The value of `Realm.prototype.evaluate.length` is `1`");
verifyNotEnumerable(Realm.prototype.evaluate, "length"); verifyProperty(Realm.prototype.evaluate, "length", {
verifyNotWritable(Realm.prototype.evaluate, "length"); value: 1,
verifyConfigurable(Realm.prototype.evaluate, "length"); enumerable: false,
writable: false,
configurable: true,
});

View File

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

View File

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

View File

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

View File

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