mirror of https://github.com/tc39/test262.git
Merge pull request #1537 from jugglinmike/remove-superfluous-code
Remove superfluous code from negative syntax tests
This commit is contained in:
commit
3bfad28cc3
|
@ -12,10 +12,5 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
//CHECK#1
|
if (false) {};
|
||||||
var x = 0;
|
else {}
|
||||||
if (false) {x = 1};
|
|
||||||
else x = -1
|
|
||||||
if (x !== -1) {
|
|
||||||
$ERROR('#1: Check If Statement for automatic semicolon insertion');
|
|
||||||
}
|
|
||||||
|
|
|
@ -18,4 +18,3 @@ try {
|
||||||
1;
|
1;
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
}
|
}
|
||||||
$ERROR('#1: Check throw statement for automatic semicolon insertion');
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
var x = 0;
|
var x = 0;
|
||||||
x
|
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;
|
var x = 1;
|
||||||
x
|
x
|
||||||
--;
|
--;
|
||||||
$ERROR('#1: Check Postfix Decrement Operator for automatic semicolon insertion');
|
|
||||||
|
|
|
@ -12,5 +12,4 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
$ERROR('This statement should not be executed.');
|
|
||||||
var public;
|
var public;
|
||||||
|
|
|
@ -14,19 +14,9 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var x=0,y=0;
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
LABEL1 : do {
|
|
||||||
x++;
|
|
||||||
throw "gonna leave it";
|
|
||||||
y++;
|
|
||||||
} while(0);
|
|
||||||
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
|
|
||||||
} catch(e){
|
} catch(e){
|
||||||
break LABEL2;
|
break LABEL2;
|
||||||
LABEL2 : do {
|
LABEL2 : do {
|
||||||
x++;
|
|
||||||
y++;
|
|
||||||
} while(0);
|
} while(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,19 +14,9 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var x=0,y=0;
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
LABEL1 : do {
|
|
||||||
x++;
|
|
||||||
throw "gonna leave it";
|
|
||||||
y++;
|
|
||||||
} while(0);
|
|
||||||
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
|
|
||||||
} catch(e){
|
} catch(e){
|
||||||
break;
|
break;
|
||||||
LABEL2 : do {
|
LABEL2 : do {
|
||||||
x++;
|
|
||||||
y++;
|
|
||||||
} while(0);
|
} while(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,19 +14,9 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var x=0,y=0;
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
LABEL1 : do {
|
|
||||||
x++;
|
|
||||||
throw "gonna leave it";
|
|
||||||
y++;
|
|
||||||
} while(0);
|
|
||||||
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
|
|
||||||
} catch(e){
|
} catch(e){
|
||||||
continue LABEL2;
|
continue LABEL2;
|
||||||
LABEL2 : do {
|
LABEL2 : do {
|
||||||
x++;
|
|
||||||
y++;
|
|
||||||
} while(0);
|
} while(0);
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,19 +12,7 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var x=0,y=0;
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
LABEL1 : do {
|
|
||||||
x++;
|
|
||||||
throw "gonna leave it";
|
|
||||||
y++;
|
|
||||||
} while(0);
|
|
||||||
$ERROR('#1: throw "gonna leave it" lead to throwing exception');
|
|
||||||
} catch(e){
|
} catch(e){
|
||||||
continue;
|
continue;
|
||||||
LABEL2 : do {
|
|
||||||
x++;
|
|
||||||
y++;
|
|
||||||
} while(0);
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue