Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rewrite execution model reference #38526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Josh-Cena
Copy link
Member

After 3 years, I finally got around to writing an article on the JavaScript execution model. This page has been a great pain point of mine for a long time. With this update, we:

  • Talk about JavaScript, not web API, so less stuff about event loops.
  • Introduce post-ES6 formalisms including agents and agent clusters and shared memory.
  • Introduce more about function calls and execution contexts.
  • Have a much cooler diagram.

This is needed for documentation for advanced features, including memory sharing and shadow realms.

Fix #5006.

@Josh-Cena Josh-Cena requested review from a team as code owners March 8, 2025 04:03
@Josh-Cena Josh-Cena requested review from sideshowbarker and bsmth and removed request for a team and sideshowbarker March 8, 2025 04:03
@github-actions github-actions bot added Content:WebAPI Web API docs Content:JS JavaScript docs size/m [PR only] 51-500 LoC changed labels Mar 8, 2025
Copy link
Contributor

github-actions bot commented Mar 8, 2025

Preview URLs

Flaws (6)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/HTML_DOM_API/Microtask_guide
Title: Using microtasks in JavaScript with queueMicrotask()
Flaw count: 6

  • broken_links:
    • /en-US/docs/Glossary/user_agent is ill cased
  • macros:
    • Macro produces link /en-US/docs/Web/API/Element/select_event which is a redirect
    • Can't resolve /en-US/docs/Web/API/Element/show_event
    • Macro produces link /en-US/docs/Web/API/HTMLElement/input_event which is a redirect
    • Macro produces link /en-US/docs/Web/API/HTMLInputElement/change_event which is a redirect
    • Macro produces link /en-US/docs/Glossary/user_agent which is a redirect
External URLs (3)

URL: /en-US/docs/Web/JavaScript/Reference/Execution_model
Title: JavaScript execution model

@OnkarRuikar
Copy link
Contributor

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Content:JS JavaScript docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need a page on Execution context
2 participants