From: mstarzinger@chromium.org Date: Fri, 5 Apr 2013 08:38:40 +0000 (+0000) Subject: Fix minor typo in generator parsing test. X-Git-Tag: upstream/4.7.83~14691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48635f7d58485553fe30a47cacef6eee2c14eca7;p=platform%2Fupstream%2Fv8.git Fix minor typo in generator parsing test. 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 --- diff --git a/test/mjsunit/harmony/generators-parsing.js b/test/mjsunit/harmony/generators-parsing.js index 0e5494d..49a44ba 100644 --- a/test/mjsunit/harmony/generators-parsing.js +++ b/test/mjsunit/harmony/generators-parsing.js @@ -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.