mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 07:25:15 +02:00
fix: use verifyProperty
This commit is contained in:
parent
29cb47e376
commit
bb0ad134f5
@ -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,
|
||||||
|
});
|
||||||
|
@ -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,
|
||||||
|
});
|
||||||
|
@ -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,
|
||||||
|
});
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user