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
// 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.