Shouldn't test for equality against the message string, which is implementation independent.

This commit is contained in:
norris%netscape.com 1999-10-22 18:33:46 +00:00
parent 016e60cf26
commit 4e7cfd348a

View File

@ -13,9 +13,6 @@
startTest();
// Regular Expression Literals may not be empty; // should be regarded
// as a comment, not a RegExp literal.
var result = "failed";
try {
@ -23,12 +20,12 @@
}
catch (x) {
if (x instanceof SyntaxError)
result = x.toString();
result = x.name;
}
AddTestCase(
"using the expression \"super\" shouldn't cause js to crash",
"SyntaxError: super is a reserved identifier" ,
"SyntaxError",
result );
test();