tor-browser

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

fn-block.js (956B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/statementList/block.case
      3 // - src/statementList/default/function-declaration.template
      4 /*---
      5 description: Block (Valid syntax of StatementList starting with a Function Declaration)
      6 esid: prod-StatementList
      7 flags: [generated]
      8 info: |
      9    StatementList:
     10      StatementListItem
     11      StatementList StatementListItem
     12 
     13    StatementListItem:
     14      Statement
     15      Declaration
     16 
     17    Declaration:
     18      HoistableDeclaration
     19 
     20    FunctionDeclaration:
     21      function BindingIdentifier ( FormalParameters ) { FunctionBody }
     22 
     23    Statement:
     24      BlockStatement
     25      VariableStatement
     26      EmptyStatement
     27      ExpressionStatement
     28      ...
     29 
     30    // lookahead here prevents capturing an Object literal
     31    ExpressionStatement:
     32      [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
     33        Expression ;
     34 ---*/
     35 
     36 
     37 function fn() {}{}
     38 
     39 reportCompare(0, 0);