Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
Replacement steps in operation BlockDeclarationInstantiation

Recently, I've noticed that operation BlockDeclarationInstantiation has some changes. Take a look at these points:

Perform ! env.CreateMutableBinding(dn, false). NOTE: This step is replaced in section B.3.2.6.

and

Perform env.InitializeBinding(fn, fo). NOTE: This step is replaced in section B.3.2.6.

Earlier I've not seen them. In draft specification we have for BlockDeclarationInstantiation this. In comparison with ECMAScript 7 we have not this point, but in ECMAScript 8 we have part of that what we have in the draft version.

  1. Why do we have so differences for BlockDeclarationInstantiation compability among versions? Shouldn't compatibility be the same?
  2. Why has not it done simple by inserting new points in current algorithm of BlockDeclarationInstantiation?
  3. What do replacements actual do especial that they didn't before?
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

These "replacements" are not due to differences in version.

If you look at it, they are specified in Annex B, "Additional ECMAScript Features for Web Browsers".

This annex contains alternative rules specifically for web browsers. As the header says, rules defined there are required only if the host is a browser, optional otherwise.

Annex B is mostly for specifying legacy language features that weren't specified but were implemented in browsers. These two are for FunctionDeclarations inside BlockStatements, a legacy feature first specified in ES6.

The ES6 spec gives a detailed description of this feature, with a different set of rather-complex modifications.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda