Skip to content
Snippets Groups Projects
Commit 22f8df23 authored by Viktor's avatar Viktor Committed by Tom Care
Browse files

Update S15.4.4.11_A7.2.js (#777)

`Array.prototype.sort` should be used instead of `Array.sort`
parent fb61ab44
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment