Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Layering: track execution contexts' script/module
Fixes tc39#78. Introduces the concept of a Script Record as a counterpart to a Module Record, and adds [[HostDefined]] fields to both of them. Every execution environment now has ScriptOrModule component pointing back to its "creator" script or module: - Top level script/module execution contexts point to the appropriate script/module. - Function execution contexts for functions declared at top level point to that of the containing script/module. - Function execution contexts for functions declared inside other functions point to that of the containing function. - Eval execution contexts point to that of their containing function. - Job execution contexts (which are largely a spec artifact) point to the script/module that originally enqueued the job.
- Loading branch information