Skip to content

Commit

Permalink
Move export syntax with IfClause to ExportDeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dandclark committed Jul 16, 2020
1 parent 6f7fff4 commit b087414
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec.html
Expand Up @@ -25,7 +25,16 @@ <h1>Syntax</h1>
`import` ModuleSpecifier `;`
<ins>`import` ImportClause FromClause IfClause `;`</ins>
<ins>`import` ModuleSpecifier IfClause `;`</ins>

ExportDeclaration :
`export` ExportFromClause FromClause `;`
<ins>`export` ExportFromClause FromClause IfClause `;`</ins>
`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 &lt;! {`function`, `async` [no |LineTerminator| here] `function`, `class`}] AssignmentExpression[+In, ~Yield, ~Await] `;`

IfClause :
<ins>`if` `{` ConditionEntries `,`? `}`</ins>
Expand Down

0 comments on commit b087414

Please sign in to comment.