tor-browser

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

fn-expr-arrow-function-boolean-literal.js (1370B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/statementList/expr-arrow-function-boolean-literal.case
      3 // - src/statementList/default/function-declaration.template
      4 /*---
      5 description: Expression with an Arrow Function and Boolean literal (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    Expression:
     36      AssignmentExpression
     37      Expression , AssignmentExpression
     38 
     39    AssignmentExpression:
     40      ConditionalExpression
     41      [+Yield]YieldExpression
     42      ArrowFunction
     43 
     44    ArrowFunction:
     45      ArrowParameters [no LineTerminator here] => ConciseBody
     46 
     47    ConciseBody:
     48      [lookahead ≠ {] AssignmentExpression
     49      { FunctionBody }
     50 
     51 ---*/
     52 
     53 
     54 function fn() {}() => 1, 42;
     55 
     56 reportCompare(0, 0);