tor-browser

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

eval-block-with-statment-let-declaration.js (955B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/statementList/let-declaration.case
      3 // - src/statementList/default/eval-block-with-statement.template
      4 /*---
      5 description: LexicalDeclaration using Let (Evaluate produciton of StatementList starting with a BlockStatement)
      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    Statement:
     18      BlockStatement
     19 
     20    BlockStatement:
     21      Block
     22 
     23    Block:
     24      { StatementList_opt }
     25 
     26    Declaration:
     27      LexicalDeclaration
     28 
     29    LexicalDeclaration:
     30      LetOrConst BindingList ;
     31 
     32    BindingList:
     33      LexicalBinding
     34      BindingList , LexicalBinding
     35 ---*/
     36 
     37 
     38 // length is a label!
     39 var result = eval('{length: 3000}let a, b = 42, c;b;');
     40 
     41 // Reuse this value for items with empty completions
     42 var expected = 3000;
     43 
     44 
     45 
     46 reportCompare(0, 0);