mirror of https://github.com/tc39/test262.git
fix: use verifyProperty
This commit is contained in:
parent
29cb47e376
commit
bb0ad134f5
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue