Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!