From 48635f7d58485553fe30a47cacef6eee2c14eca7 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Fri, 5 Apr 2013 08:38:40 +0000 Subject: [PATCH] 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 --- test/mjsunit/harmony/generators-parsing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.7.4