Commit 2c255287 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Don't require semicolon after function declaration.

parent 05b104c6
......@@ -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); }
......
......@@ -902,5 +902,7 @@ ok(re.source === "=(\\?|%3F)", "re.source = " + re.source);
ok(createNullBSTR() === '', "createNullBSTR() !== ''");
function do_test() {}
function nosemicolon() {} nosemicolon();
function () {} nosemicolon();
reportSuccess();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment