Use verifyProperty in language/literals tests

This commit is contained in:
André Bargull 2023-09-11 14:16:39 +02:00 committed by Ms2ger
parent e6f1feb04d
commit f2275d23f4
1 changed files with 6 additions and 5 deletions

View File

@ -29,8 +29,9 @@ includes: [propertyHelper.js]
var re = /./;
assert.sameValue(re.lastIndex, 0);
verifyNotEnumerable(re, 'lastIndex');
verifyWritable(re, 'lastIndex');
verifyNotConfigurable(re, 'lastIndex');
verifyProperty(re, "lastIndex", {
value: 0,
writable: true,
enumerable: false,
configurable: false,
});