Fix minor typo in generator parsing test.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Apr 2013 08:38:40 +0000 (08:38 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Apr 2013 08:38:40 +0000 (08:38 +0000)
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/13575010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14148 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/mjsunit/harmony/generators-parsing.js

index 0e5494d..49a44ba 100644 (file)
@@ -74,7 +74,7 @@ function* g() { yield ({ get yield() { return 1; }}) }
 // mode or in generators.
 function f() { yield: 1 }
 assertThrows("function f() { \"use strict\"; yield: 1 }", SyntaxError)
-assertThrows("function f*() { yield: 1 }", SyntaxError)
+assertThrows("function* g() { yield: 1 }", SyntaxError)
 
 // Yield is only a keyword in the body of the generator, not in nested
 // functions.