eval-fn-let-declaration.js (923B)
1 // This file was procedurally generated from the following sources: 2 // - src/statementList/let-declaration.case 3 // - src/statementList/default/eval-function-declaration.template 4 /*--- 5 description: LexicalDeclaration using Let (Eval production 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 Declaration: 24 LexicalDeclaration 25 26 LexicalDeclaration: 27 LetOrConst BindingList ; 28 29 BindingList: 30 LexicalBinding 31 BindingList , LexicalBinding 32 ---*/ 33 34 35 var result = eval('function fn() {}let a, b = 42, c;b;'); 36 37 assert.sameValue(result, 42); 38 39 reportCompare(0, 0);