Skip to content
Snippets Groups Projects
Commit e01a5606 authored by Mike Pennisi's avatar Mike Pennisi
Browse files

Remove superfluous code from negative syntax tests

Because these files contain syntax errors, the code they contain is not
intended to be executed, and the runtime semantics are therefore
irrelevant. Simplify the files by removing the unnecessary code.
parent 64cdeaf1
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,5 @@ negative:
throw "Test262: This statement should not be evaluated.";
//CHECK#1
var x = 0;
if (false) {x = 1};
else x = -1
if (x !== -1) {
$ERROR('#1: Check If Statement for automatic semicolon insertion');
}
if (false) {};
else {}
......@@ -18,4 +18,3 @@ try {
1;
} catch(e) {
}
$ERROR('#1: Check throw statement for automatic semicolon insertion');
......@@ -12,8 +12,6 @@ negative:
throw "Test262: This statement should not be evaluated.";
//CHECK#1
var x = 0;
x
++;
$ERROR('#1: Check Postfix Increment Operator for automatic semicolon insertion');
......@@ -16,4 +16,3 @@ throw "Test262: This statement should not be evaluated.";
var x = 1;
x
--;
$ERROR('#1: Check Postfix Decrement Operator for automatic semicolon insertion');
......@@ -12,5 +12,4 @@ negative:
throw "Test262: This statement should not be evaluated.";
$ERROR('This statement should not be executed.');
var public;
......@@ -14,19 +14,9 @@ negative:
throw "Test262: This statement should not be evaluated.";
var x=0,y=0;
try{
LABEL1 : do {
x++;
throw "gonna leave it";
y++;
} while(0);
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
} catch(e){
break LABEL2;
LABEL2 : do {
x++;
y++;
} while(0);
}
......@@ -14,19 +14,9 @@ negative:
throw "Test262: This statement should not be evaluated.";
var x=0,y=0;
try{
LABEL1 : do {
x++;
throw "gonna leave it";
y++;
} while(0);
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
} catch(e){
break;
LABEL2 : do {
x++;
y++;
} while(0);
}
......@@ -14,19 +14,9 @@ negative:
throw "Test262: This statement should not be evaluated.";
var x=0,y=0;
try{
LABEL1 : do {
x++;
throw "gonna leave it";
y++;
} while(0);
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
} catch(e){
continue LABEL2;
LABEL2 : do {
x++;
y++;
} while(0);
};
......@@ -12,19 +12,7 @@ negative:
throw "Test262: This statement should not be evaluated.";
var x=0,y=0;
try{
LABEL1 : do {
x++;
throw "gonna leave it";
y++;
} while(0);
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
} catch(e){
continue;
LABEL2 : do {
x++;
y++;
} while(0);
};
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