NOT A PART OF SEAMONKEY BUILD
- removed redundant test & fixed test for 'super' to detect syntax error git-svn-id: svn://10.0.0.236/trunk@50366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d6fa660ea6
commit
2fc190da13
@ -16,13 +16,19 @@
|
||||
// Regular Expression Literals may not be empty; // should be regarded
|
||||
// as a comment, not a RegExp literal.
|
||||
|
||||
var result = "passed";
|
||||
var result = "failed";
|
||||
|
||||
super;
|
||||
try {
|
||||
eval("super;");
|
||||
}
|
||||
catch (x) {
|
||||
if (x instanceof SyntaxError)
|
||||
result = x.toString();
|
||||
}
|
||||
|
||||
AddTestCase(
|
||||
"using the expression \"super\" shouldn't cause js to crash",
|
||||
"passed" ,
|
||||
"SyntaxError: super is a reserved identifier" ,
|
||||
result );
|
||||
|
||||
test();
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
/**
|
||||
* File Name:
|
||||
* ECMA Section:
|
||||
* Description:
|
||||
*
|
||||
*
|
||||
* Author: christine@netscape.com
|
||||
* Date: 11 August 1998
|
||||
*/
|
||||
var SECTION = "";
|
||||
var VERSION = "ECMA_2";
|
||||
var TITLE = "Keywords";
|
||||
|
||||
startTest();
|
||||
|
||||
// Regular Expression Literals may not be empty; // should be regarded
|
||||
// as a comment, not a RegExp literal.
|
||||
|
||||
var result = "passed";
|
||||
|
||||
super;
|
||||
|
||||
AddTestCase(
|
||||
"using the expression \"super\" shouldn't cause js to crash",
|
||||
"passed" ,
|
||||
result );
|
||||
|
||||
test();
|
||||
Loading…
x
Reference in New Issue
Block a user