test262/test/language/block-scope/syntax/redeclaration/fn-scope-var-name-redeclara...

19 lines
605 B
JavaScript
Raw Normal View History

2018-12-05 00:29:41 +01:00
// This file was procedurally generated from the following sources:
2018-12-18 18:01:19 +01:00
// - src/declarations/var.case
2018-12-05 00:29:41 +01:00
// - src/declarations/redeclare-allow-var/fn-block-attempt-to-redeclare-var-declaration.template
/*---
description: redeclaration with VariableDeclaration (VariableDeclaration in BlockStatement inside a function)
esid: sec-block-static-semantics-early-errors
flags: [generated]
info: |
Block : { StatementList }
It is a Syntax Error if any element of the LexicallyDeclaredNames of
StatementList also occurs in the VarDeclaredNames of StatementList.
---*/
function x() {
2018-12-18 18:01:19 +01:00
{ var f; var f }
2018-12-05 00:29:41 +01:00
}