-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment settings object in the microtask checkpoint #8130
Comments
I might be misunderstanding the question, and I apologize if this is irrelevant or already obvious: The spec has "An environment settings object's responsible event loop is its global object's relevant agent's event loop" which would imply looking from the event loop to the relevant agent, then from there to the global object(s), and then from there to the environment settings object(s). Each of these steps is an association that's already existent in the spec in some way, but this phrasing seems to expect the implementor to look "upstream" along links that are only specified concretely in the other direction. One key piece here is the "relevant agent", which has a note on its definition "This pointer is not yet defined in the JavaScript specification; see tc39/ecma262#1357". If that issue is correct, then at least one step, getting from the agent to the global object(s), depends on a slot that isn't yet specified. |
@pshaughn I don't ask how to define relevant event loop, I ask about source of the environment settings objects. The spec doesn't specify concrete source for the environment settings objects instead this it refers to its definition. The point is that I don't understand where I should take environment settings objects from, I mean source or sources. What manages by environment settings objects (for example an agent has the event loop or for example the event loop has a currently running task)? I think you understand my intention. |
It's pretty clear: for each ESO whose responsible event loop is this event loop. So... for every ESO, if it's responsible event loop = this event loop, perform those steps. |
@domenic You've explained determination of the event loop. But I want understand what is owner of the ESO, because spec in that step doesn't say. |
There is no owner. |
@domenic that means I should looking for the ESO for the relevant event loop any available to me way. Doesn't it? |
Perform a microtask checkpoint
There are no words about where you should take environment settings objects from. Any clarification?
The text was updated successfully, but these errors were encountered: