1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

Fix missing renames for item->at

Ref 
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
test/built-ins
Array/prototype/at
String/prototype/at
TypedArray/prototype/at

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

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

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

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

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

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