mirror of https://github.com/tc39/test262.git
a few tests use verifyPrimordialProperty
This commit is contained in:
parent
d6155b6ef2
commit
83fae7f1f2
|
@ -16,6 +16,8 @@ includes: [propertyHelper.js]
|
|||
|
||||
assert.sameValue(typeof Array.prototype.every, 'function', 'typeof');
|
||||
|
||||
verifyNotEnumerable(Array.prototype, "every");
|
||||
verifyWritable(Array.prototype, "every");
|
||||
verifyConfigurable(Array.prototype, "every");
|
||||
verifyPrimordialProperty(Array.prototype, "every", {
|
||||
writable: true,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyProperty(DataView.prototype.getInt16, "length", {
|
||||
verifyPrimordialProperty(DataView.prototype.getInt16, "length", {
|
||||
value: 1,
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
|
|
|
@ -5,14 +5,9 @@
|
|||
info: The Date property "parse" has { DontEnum } attributes
|
||||
esid: sec-date.parse
|
||||
description: Checking absence of ReadOnly attribute
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
var x = Date.parse;
|
||||
if (x === 1) {
|
||||
Date.parse = 2;
|
||||
} else {
|
||||
Date.parse = 1;
|
||||
}
|
||||
assert.notSameValue(Date.parse, x, 'The value of Date.parse is expected to not equal the value of `x`');
|
||||
|
||||
// TODO: Convert to verifyProperty() format.
|
||||
verifyPrimordialProperty(Date, "parse", {
|
||||
writable: true,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue