mirror of https://github.com/tc39/test262.git
Use verifyProperty in language/literals tests
This commit is contained in:
parent
e6f1feb04d
commit
f2275d23f4
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue