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

26 lines
724 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/async-generator.case
2018-12-05 00:29:41 +01:00
// - src/declarations/redeclare/fn-block-attempt-to-redeclare-var-declaration.template
/*---
description: redeclaration with AsyncGeneratorDeclaration (VariableDeclaration in BlockStatement inside a function)
esid: sec-block-static-semantics-early-errors
features: [async-iteration]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Block : { StatementList }
It is a Syntax Error if any element of the LexicallyDeclaredNames of
StatementList also occurs in the VarDeclaredNames of StatementList.
---*/
$DONOTEVALUATE();
function x() {
{ async function* f() {}; var f; }
}