mirror of https://github.com/tc39/test262.git
Merge pull request #680 from bocoup/597-remove-oldlen
Remove unused variables
This commit is contained in:
commit
b324c7d88f
|
@ -14,7 +14,6 @@ description: Array.prototype.every - 'length' is property of the global object
|
|||
return val > 11;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -16,7 +16,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 11;
|
||||
this.length = 1;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ description: Array.prototype.filter - 'length' is property of the global object
|
|||
return obj.length === 2;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -12,7 +12,6 @@ description: >
|
|||
return idx === 0 && val === 11;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 11;
|
||||
this.length = 1;
|
||||
var newArr = Array.prototype.filter.call(this, callbackfn);
|
||||
|
|
|
@ -11,7 +11,6 @@ description: Array.prototype.forEach - 'length' is property of the global object
|
|||
result = (obj.length === 2);
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -16,7 +16,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 11;
|
||||
this.length = 1;
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ es5id: 15.4.4.14-1-17
|
|||
description: Array.prototype.indexOf applied to the global object
|
||||
---*/
|
||||
|
||||
var oldLen = this.length;
|
||||
this[1] = true;
|
||||
this.length = 2;
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ description: Array.prototype.indexOf - 'length' is property of the global object
|
|||
|
||||
var targetObj = {};
|
||||
|
||||
var oldLen = this.length;
|
||||
this.length = 2;
|
||||
|
||||
this[1] = targetObj;
|
||||
|
|
|
@ -8,7 +8,6 @@ description: Array.prototype.indexOf - This object is the global object
|
|||
|
||||
var targetObj = {};
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = targetObj;
|
||||
this[100] = "100";
|
||||
this[200] = "200";
|
||||
|
|
|
@ -8,7 +8,6 @@ description: Array.prototype.lastIndexOf applied to the global object
|
|||
|
||||
var targetObj = ["global"];
|
||||
|
||||
var oldLen = this.length;
|
||||
this[1] = targetObj;
|
||||
this.length = 3;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ description: >
|
|||
|
||||
var targetObj = {};
|
||||
|
||||
var oldLen = this.length;
|
||||
this.length = 2;
|
||||
|
||||
this[1] = targetObj;
|
||||
|
|
|
@ -8,7 +8,6 @@ description: Array.prototype.lastIndexOf - This object is the global object
|
|||
|
||||
var targetObj = {};
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = targetObj;
|
||||
this[100] = "100";
|
||||
this[200] = "200";
|
||||
|
|
|
@ -12,7 +12,6 @@ description: >
|
|||
return val > 10;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -17,7 +17,6 @@ description: >
|
|||
return false;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = kValue;
|
||||
this.length = 2;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ description: Array.prototype.reduce - 'length' is property of the global object
|
|||
return (obj.length === 2);
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -15,7 +15,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 0;
|
||||
this[1] = 1;
|
||||
this[2] = 2;
|
||||
|
|
|
@ -16,7 +16,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 0;
|
||||
this[1] = 1;
|
||||
this.length = 2;
|
||||
|
|
|
@ -16,7 +16,6 @@ var global = this;
|
|||
return obj.length === global.length;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 12;
|
||||
this[1] = 11;
|
||||
this[2] = 9;
|
||||
|
|
|
@ -15,7 +15,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 0;
|
||||
this[1] = 1;
|
||||
this[2] = 2;
|
||||
|
|
|
@ -15,7 +15,6 @@ description: >
|
|||
}
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 0;
|
||||
this[1] = 1;
|
||||
this[2] = 2;
|
||||
|
|
|
@ -14,7 +14,6 @@ description: Array.prototype.some - 'length' is property of the global object
|
|||
return val > 11;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 9;
|
||||
this[1] = 11;
|
||||
this[2] = 12;
|
||||
|
|
|
@ -15,7 +15,6 @@ description: >
|
|||
return false;
|
||||
}
|
||||
|
||||
var oldLen = this.length;
|
||||
this[0] = 11;
|
||||
this.length = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue