function-name-redeclaration-attempt-with-function-strict.js (691B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // This file was procedurally generated from the following sources: 4 // - src/declarations/function.case 5 // - src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template 6 /*--- 7 description: redeclaration with FunctionDeclaration (FunctionDeclaration in BlockStatement) 8 esid: sec-block-static-semantics-early-errors 9 flags: [generated, onlyStrict] 10 negative: 11 phase: parse 12 type: SyntaxError 13 info: | 14 Block : { StatementList } 15 16 It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains 17 any duplicate entries. 18 19 ---*/ 20 21 22 $DONOTEVALUATE(); 23 24 { function f() {} function f() {} }