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
Родитель e561d54139
Коммит ab350ea41b
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -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();