mirror of https://github.com/tc39/test262.git
Update S15.4.4.11_A7.2.js (#777)
`Array.prototype.sort` should be used instead of `Array.sort`
This commit is contained in:
parent
fb61ab44eb
commit
22f8df2315
|
@ -9,7 +9,7 @@ description: Checking use hasOwnProperty, delete
|
|||
|
||||
//CHECK#1
|
||||
if (Array.prototype.sort.hasOwnProperty('length') !== true) {
|
||||
$ERROR('#1: Array.sort.prototype.hasOwnProperty(\'length\') === true. Actual: ' + (Array.sort.prototype.hasOwnProperty('length')));
|
||||
$ERROR('#1: Array.prototype.sort.hasOwnProperty(\'length\') === true. Actual: ' + (Array.prototype.sort.hasOwnProperty('length')));
|
||||
}
|
||||
|
||||
delete Array.prototype.sort.length;
|
||||
|
|
Loading…
Reference in New Issue