JavaScript Test - fix broken test, bug 351515

This commit is contained in:
bclary@bclary.com 2007-05-31 14:58:36 -07:00
parent 5723ee75d2
commit bf62d09d91

View File

@ -49,15 +49,15 @@ test();
try
{
expect = 'SyntaxError: yield not in function';
expect = 'SyntaxError: syntax error';
eval('yield = 1;');
actual = 'No Error'
}
actual = 'No Error';
}
catch(ex)
{
actual = ex + '';
}
reportCompare(expect, actual, summary + ': yield = 1');
reportCompare(expect, actual, summary + ': global: yield = 1');
try
{
@ -69,7 +69,7 @@ catch(ex)
{
actual = ex + '';
}
reportCompare(expect, actual, summary + ': let = 1');
reportCompare(expect, actual, summary + ': global: let = 1');
function test()
{