Removed an invalid "var".

This commit is contained in:
Mark Miller 2011-09-07 08:52:29 -07:00
parent d6df1d4a36
commit 57c450002d
5 changed files with 9 additions and 10 deletions

View File

@ -5,7 +5,7 @@
* @name: S15.10.6.2_A12;
* @section: 15.10.6.2;
* @assertion: regExp exec() acts like regExp.exec('undefined') (step 2);
* @description: Checking RegExp.prototype.exec.length;
* @description: Checking RegExp.prototype.exec
*/
(/foo/).test('xfoox');

View File

@ -5,7 +5,7 @@
* @name: S15.3.4.5_A1;
* @section: 15.3.4.5;
* @assertion: "caller" of bound function is poisoned (step 20);
* @description A bound function should fail to find its "caller";
* @description: A bound function should fail to find its "caller";
* @negative
* @errortype: TypeError;
*/

View File

@ -6,7 +6,6 @@
* @section: 15.4.4.12;
* @assertion: Operator use ToInteger from start;
* @description: ToInteger use ToNumber;
* @description: ToInteger use ToNumber;
*/
var x = [0,1,2,3];
@ -21,7 +20,7 @@ if (arr.getClass() !== "[object " + "Array" + "]") {
//CHECK#2
if (arr.length !== 3) {
$ERROR('#2: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr.length === 3. Actual: ' + (arr.length));
}
}
//CHECK#3
if (arr[0] !== 0) {
@ -31,19 +30,19 @@ if (arr[0] !== 0) {
//CHECK#4
if (arr[1] !== 1) {
$ERROR('#4: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[1] === 1. Actual: ' + (arr[1]));
}
}
//CHECK#5
if (arr[2] !== 2) {
$ERROR('#5: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); arr[2] === 2. Actual: ' + (arr[2]));
}
}
//CHECK#6
if (x.length !== 1) {
$ERROR('#6: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); x.length === 1. Actual: ' + (x.length));
}
}
//CHECK#7
if (x[0] !== 3) {
$ERROR('#7: var x = [0,1,2,3]; var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); x[0] === 3. Actual: ' + (x[0]));
}
}

View File

@ -10,7 +10,7 @@
var __instance = new Object(true);
var __instance.lastIndexOf = String.prototype.lastIndexOf;
__instance.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1

View File

@ -23,7 +23,7 @@ description: "Arguments are false and true, and instance is object",
test: function testcase() {
var __instance = new Object(true);
var __instance.lastIndexOf = String.prototype.lastIndexOf;
__instance.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1