Skip to content
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

Where is Active[caller] defined? #42

Open
jmdyck opened this issue Jul 31, 2024 · 1 comment
Open

Where is Active[caller] defined? #42

jmdyck opened this issue Jul 31, 2024 · 1 comment

Comments

@jmdyck
Copy link

jmdyck commented Jul 31, 2024

In the definition for "suspending function", the execution context context has a "state" that is either Suspended or Active[caller]. Where is all this defined?

I know that the ECMAScript spec defines "execution context" (and WebAssembly.promising's use of the term explicitly links to the ES spec), but an ES execution context doesn't have a "state" component, let alone one whose values are Suspended or Active[caller]. So I'm wondering if you have some other kind of execution context in mind.

@fgmccabe
Copy link
Collaborator

This text is being reworked for the specification itself.
The intention in the explainer was to note that the execution context was active for some caller. As you note, this is not a real ES thing.
For a snapshot look into the spec as it is being developed, see #37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants