Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

75
Views
Javascript Environment Record, is it an Exotic Object?

Are the environment record and exotic object creation procedures the same?

i.e. creation of a basic object with different internal slots and methods, than that of an ordinary object?

Are both objects constructed with the same %Object% intrinsic method?

P.S. Is it correct to refer to an environment record as a completed execution context?

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

An Environment Record isn't an object at all. (Or more precisely, there's no requirement that Environment Records be implemented as objects. Thinking of them as objects will probably hinder your understanding.)

Environment Records are "specification values", entities that are defined only as a device to specify semantics. In contrast, objects are "language values", values that your JavaScript code can actually manipulate.

P.S. Is it correct to refer to an environment record as a completed execution context?

Nope. Environment Records and Execution Contexts are distinct kinds of specification values. A typical Execution Context will refer to one or two Environment Records, to resolve identifiers in the code that it evaluates.

7 months 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 job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.