Skip to content

Scopes: Define boundaries for generated ranges in JavaScript#249

Open
szuend wants to merge 1 commit intotc39:proposal-scopesfrom
szuend:javascript-scopes
Open

Scopes: Define boundaries for generated ranges in JavaScript#249
szuend wants to merge 1 commit intotc39:proposal-scopesfrom
szuend:javascript-scopes

Conversation

@szuend
Copy link
Copy Markdown
Collaborator

@szuend szuend commented Mar 5, 2026

Preview

This PR takes a stab at defining some rules how generated ranges should be emitted for JavaScript. The goal is to prevent generators from emitting ranges that start in one JS lexical scope and end in another while prescribing the exact locations where [[Start]] and [[End]] should be.

I didn't want to over-complicate the rules, so instead of defining them via records and SDOs it's a simple table that lists where these "boundaries" are.

Let me know what you think of this approach!

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