Skip to content
Snippets Groups Projects
Commit 57c45000 authored by Mark Miller's avatar Mark Miller
Browse files

Removed an invalid "var".

parent d6df1d4a
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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;
*/
......
......@@ -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]));
}
}
......@@ -10,7 +10,7 @@
var __instance = new Object(true);
var __instance.lastIndexOf = String.prototype.lastIndexOf;
__instance.lastIndexOf = String.prototype.lastIndexOf;
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment