From b087414f14d0fe2c60b981d13f258c6a4c7eaaaf Mon Sep 17 00:00:00 2001 From: Daniel Clark Date: Thu, 16 Jul 2020 13:55:42 -0700 Subject: [PATCH] Move export syntax with IfClause to ExportDeclaration --- spec.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec.html b/spec.html index 7dd0f6f..0e049ee 100644 --- a/spec.html +++ b/spec.html @@ -25,7 +25,16 @@

Syntax

`import` ModuleSpecifier `;` `import` ImportClause FromClause IfClause `;` `import` ModuleSpecifier IfClause `;` + + ExportDeclaration : + `export` ExportFromClause FromClause `;` `export` ExportFromClause FromClause IfClause `;` + `export` NamedExports `;` + `export` VariableStatement[~Yield, ~Await] + `export` Declaration[~Yield, ~Await] + `export` `default` HoistableDeclaration[~Yield, ~Await, +Default] + `export` `default` ClassDeclaration[~Yield, ~Await, +Default] + `export` `default` [lookahead <! {`function`, `async` [no |LineTerminator| here] `function`, `class`}] AssignmentExpression[+In, ~Yield, ~Await] `;` IfClause : `if` `{` ConditionEntries `,`? `}`