summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_7/geniter/regress-352197.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/js1_7/geniter/regress-352197.js')
-rw-r--r--js/src/tests/js1_7/geniter/regress-352197.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tests/js1_7/geniter/regress-352197.js b/js/src/tests/js1_7/geniter/regress-352197.js
index 7982e12ee..495717af7 100644
--- a/js/src/tests/js1_7/geniter/regress-352197.js
+++ b/js/src/tests/js1_7/geniter/regress-352197.js
@@ -20,7 +20,7 @@ function test()
printBugNumber(BUGNUMBER);
printStatus (summary);
- expect = /TypeError: anonymous generator function returns a value/;
+ expect = /TypeError: can't use 'yield' in a function that can return a value/;
try
{
var gen = eval('(function() { { return 5; } yield 3; })');