chakra-core/ChakraCore

No syntax error for let redeclaring var in a block

Open

#849 aberto em 21 de abr. de 2016

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (1.374 forks)batch import
BugSeverity: 3help wanted

Métricas do repositório

Stars
 (9.000 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

{ var x; let x; }

Expected: SyntaxError, duplicate delcarations. Actual: No error, var is hoisted out.

Guia do colaborador