mirror of
https://github.com/tc39/test262.git
synced 2025-05-03 22:40:28 +02:00
Use verifyProperty in language/literals tests
This commit is contained in:
parent
e6f1feb04d
commit
f2275d23f4
@ -29,8 +29,9 @@ includes: [propertyHelper.js]
|
|||||||
|
|
||||||
var re = /./;
|
var re = /./;
|
||||||
|
|
||||||
assert.sameValue(re.lastIndex, 0);
|
verifyProperty(re, "lastIndex", {
|
||||||
|
value: 0,
|
||||||
verifyNotEnumerable(re, 'lastIndex');
|
writable: true,
|
||||||
verifyWritable(re, 'lastIndex');
|
enumerable: false,
|
||||||
verifyNotConfigurable(re, 'lastIndex');
|
configurable: false,
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user