Fix missing renames for item->at

Ref #2905
This commit is contained in:
Leo Balter 2020-11-18 12:03:25 -08:00 committed by Rick Waldron
parent e1bfbbfdc8
commit 65bd4432f9
6 changed files with 36 additions and 24 deletions

View File

@ -15,10 +15,12 @@ features: [Array.prototype.at]
assert.sameValue(typeof Array.prototype.at, 'function'); assert.sameValue(typeof Array.prototype.at, 'function');
assert.sameValue( assert.sameValue(
Array.prototype.at.name, 'item', Array.prototype.at.name, 'at',
'The value of Array.prototype.at.name is "item"' 'The value of Array.prototype.at.name is "at"'
); );
verifyNotEnumerable(Array.prototype.at, 'name'); verifyProperty(Array.prototype.at, 'name', {
verifyNotWritable(Array.prototype.at, 'name'); enumerable: false,
verifyConfigurable(Array.prototype.at, 'name'); writable: false,
configurable: true
});

View File

@ -19,6 +19,8 @@ assert.sameValue(
'The value of `typeof Array.prototype.at` is "function"' 'The value of `typeof Array.prototype.at` is "function"'
); );
verifyNotEnumerable(Array.prototype, 'item'); verifyProperty(Array.prototype, 'at', {
verifyWritable(Array.prototype, 'item'); enumerable: false,
verifyConfigurable(Array.prototype, 'item'); writable: true,
configurable: true
});

View File

@ -15,10 +15,12 @@ features: [String.prototype.at]
assert.sameValue(typeof String.prototype.at, 'function'); assert.sameValue(typeof String.prototype.at, 'function');
assert.sameValue( assert.sameValue(
String.prototype.at.name, 'item', String.prototype.at.name, 'at',
'The value of String.prototype.at.name is "item"' 'The value of String.prototype.at.name is "at"'
); );
verifyNotEnumerable(String.prototype.at, 'name'); verifyProperty(String.prototype.at, 'name', {
verifyNotWritable(String.prototype.at, 'name'); enumerable: false,
verifyConfigurable(String.prototype.at, 'name'); writable: false,
configurable: true
});

View File

@ -19,6 +19,8 @@ assert.sameValue(
'The value of `typeof String.prototype.at` is "function"' 'The value of `typeof String.prototype.at` is "function"'
); );
verifyNotEnumerable(String.prototype, 'item'); verifyProperty(String.prototype.at, 'name', {
verifyWritable(String.prototype, 'item'); enumerable: false,
verifyConfigurable(String.prototype, 'item'); writable: true,
configurable: true
});

View File

@ -19,10 +19,12 @@ assert.sameValue(
); );
assert.sameValue( assert.sameValue(
TypedArray.prototype.at.name, 'item', TypedArray.prototype.at.name, 'at',
'The value of TypedArray.prototype.at.name is "item"' 'The value of TypedArray.prototype.at.name is "at"'
); );
verifyNotEnumerable(TypedArray.prototype.at, 'name'); verifyProperty(TypedArray.prototype.at, 'name', {
verifyNotWritable(TypedArray.prototype.at, 'name'); enumerable: false,
verifyConfigurable(TypedArray.prototype.at, 'name'); writable: false,
configurable: true
});

View File

@ -17,6 +17,8 @@ assert.sameValue(
'The value of `typeof TypedArray.prototype.at` is "function"' 'The value of `typeof TypedArray.prototype.at` is "function"'
); );
verifyNotEnumerable(TypedArray.prototype, 'item'); verifyProperty(TypedArray.prototype.at, 'name', {
verifyWritable(TypedArray.prototype, 'item'); enumerable: false,
verifyConfigurable(TypedArray.prototype, 'item'); writable: true,
configurable: true
});