Skip to content

Scopes: Spec text for the "scopes" proposal #196

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

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

Conversation

szuend
Copy link
Collaborator

@szuend szuend commented Apr 9, 2025

Preview

Rebased on top of #193 and #194.

This is an early draft of the "scopes" proposal spec text. Sharing it already to get some early feedback and to write it out in the open :)

Done

  • Record types for scopes and ranges
  • Grammar for scopes and ranges
  • Decoding abstract operations/SDOs for scopes and ranges

ToDo

  • Add "optionally report an error" handling throughout the decoding where it makes sense.
  • Add a section that defines bounds of generated ranges w.r.t. to Ecma262 AST.
  • Add normative (or probably informative) section how to correctly utilize the scopes info (similar to Spec: add algorithms for retrieving original & generated positions #195):
    • How to retrieve original function names
    • How to expand stack frames with inlined functions
    • How to condense stack traces with outlined functions

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

Successfully merging this pull request may close these issues.

1 participant