JavaScript Tests - update to remove failures due to change in expected behavior,
bug 345855
--- a/js/tests/js1_7/geniter/regress-345855.js
+++ b/js/tests/js1_7/geniter/regress-345855.js
@@ -60,52 +60,28 @@ function test()
actual = 'No Error';
}
catch(ex)
{
actual = ex + '';
}
reportCompare(expect, actual, summary + ': function() {x = 12 + yield;}');
- expect = /SyntaxError: yield expression must be parenthesized/;
- try
- {
- eval('(function () {foo(yield)})');
- actual = 'No Error';
- }
- catch(ex)
- {
- actual = ex + '';
- }
- reportMatch(expect, actual, summary + ': function () {foo(yield)}');
-
expect = 'SyntaxError: syntax error';
try
{
eval('(function() {x = 12 + yield 42})');
actual = 'No Error';
}
catch(ex)
{
actual = ex + '';
}
reportCompare(expect, actual, summary + ': function() {x = 12 + yield 42}');
- expect = /SyntaxError: yield expression must be parenthesized/;
- try
- {
- eval('(function (){foo(yield 42)})');
- actual = 'No Error';
- }
- catch(ex)
- {
- actual = ex + '';
- }
- reportMatch(expect, actual, summary + ': function (){foo(yield 42)}');
-
expect = 'No Error';
try
{
eval('(function() {x = 12 + (yield);})');
actual = 'No Error';
}
catch(ex)
{