tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fn-arrow-function-assignment-expr.js (1277B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/statementList/arrow-function-assignment-expr.case
      3 // - src/statementList/default/function-declaration.template
      4 /*---
      5 description: Arrow Function with an AssignmentExpression (Valid syntax of StatementList starting with a Function Declaration)
      6 esid: prod-StatementList
      7 features: [arrow-function]
      8 flags: [generated]
      9 info: |
     10    StatementList:
     11      StatementListItem
     12      StatementList StatementListItem
     13 
     14    StatementListItem:
     15      Statement
     16      Declaration
     17 
     18    Declaration:
     19      HoistableDeclaration
     20 
     21    FunctionDeclaration:
     22      function BindingIdentifier ( FormalParameters ) { FunctionBody }
     23 
     24    Statement:
     25      BlockStatement
     26      VariableStatement
     27      EmptyStatement
     28      ExpressionStatement
     29      ...
     30 
     31    ExpressionStatement:
     32      [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
     33        Expression ;
     34 
     35    ...
     36 
     37    AssignmentExpression:
     38      ConditionalExpression
     39      [+Yield]YieldExpression
     40      ArrowFunction
     41 
     42    ArrowFunction:
     43      ArrowParameters [no LineTerminator here] => ConciseBody
     44 
     45    ConciseBody:
     46      [lookahead ≠ {] AssignmentExpression
     47      { FunctionBody }
     48 
     49 ---*/
     50 
     51 
     52 function fn() {}() => 42;
     53 
     54 reportCompare(0, 0);