JavaScript Tests - update to remove failures due to change in expected behavior, bug 345855
authorbclary@bclary.com
Tue, 19 Feb 2008 12:11:22 -0800
changeset 11879 4ab6a246b460091f6a3c34d1df8e35230acbed99
parent 11878 10a28f38a6b0903475be5a0c70181258da3c3a8e
child 11880 f4b7b29ee7bbc481aff804f9d4b742bc41b05dfd
push idunknown
push userunknown
push dateunknown
bugs345855
milestone1.9b4pre
JavaScript Tests - update to remove failures due to change in expected behavior, bug 345855
js/tests/js1_7/geniter/regress-345855.js
--- 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)
   {