jscript: Don't require semicolon after function declaration.

This commit is contained in:
Jacek Caban 2009-08-27 01:21:03 +02:00 committed by Alexandre Julliard
parent 05b104c6a3
commit 2c255287cd
2 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,8 @@ HtmlComment
/* ECMA-262 3rd Edition 14 */
SourceElements
: /* empty */ { $$ = new_source_elements(ctx); }
| SourceElements FunctionExpression
{ $$ = $1; }
| SourceElements Statement
{ $$ = source_elements_add_statement($1, $2); }

View File

@ -902,5 +902,7 @@ ok(re.source === "=(\\?|%3F)", "re.source = " + re.source);
ok(createNullBSTR() === '', "createNullBSTR() !== ''");
function do_test() {}
function nosemicolon() {} nosemicolon();
function () {} nosemicolon();
reportSuccess();