test262/test/language/block-scope/syntax/redeclaration/function-declaration-attemp...

22 lines
665 B
JavaScript
Raw Normal View History

// This file was procedurally generated from the following sources:
// - src/declarations/redeclare-with-async-function-declaration.case
// - src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template
/*---
description: redeclaration with AsyncFunctionDeclaration (FunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
2017-05-16 23:32:25 +02:00
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError
info: |
Block : { StatementList }
It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains
any duplicate entries.
---*/
{ function f() {} async function f() {} }