Is there a specific name for the execution context that encapsulates everything else in JavaScript?

Is there a specific name for the execution context that encapsulates everything else in JavaScript?

For example, it is called the "global execution context". As far as I know, this phrase is not mentioned in the ES6 spec.

+3


source to share


2 answers


He called the " global environment " according to the ES5 spec (or see the equivalent section of the ES6 spec):

The Global Environment is a unique lexical environment created before any ECMAScript code is executed. Global environment An environment record is an object environment record whose binding object is a global object (15.1). The reference to the external environment of the global environment is zero.



Or perhaps you are looking for an " initial global execution context whose lexical and environment variable refers to the global environment."

+4


source


I do not believe that any term is more specific than just "global environment" or "global environment record" (to distinguish with the binding object), which is used in several places in ES6 descriptions, for example ยง8.1 and ยง8.1.14 ( draft specification, these section numbers may drift).



+1


source







All Articles