Skip to content

feat!: split scopes and ranges in SourceMapJson and remove EMPTY tag - #19

Merged
szuend merged 1 commit into
mainfrom
pr-3-split-scopes-and-ranges
Sep 28, 2026
Merged

szuend merged 1 commit into
mainfrom
pr-3-split-scopes-and-ranges

Conversation

@szuend

@szuend szuend commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Per tc39/ecma426#266 and tc39/ecma426#274, original scopes and generated ranges are now stored in separate 'scopes' ((string | null)[]) and 'ranges' (string) fields in the source map JSON rather than a single combined string. Each source's scopes entry is decoded with a fresh ScopeState, root scopes within the same source keep relative line/column offsets instead of resetting to 0, and missing scope information is represented by 'null' in the 'scopes' array instead of Tag.EMPTY ('A').

@szuend
szuend added this pull request to stack #20 September 28, 2026 09:25
@szuend
szuend requested a review from OrKoN September 28, 2026 09:25
Base automatically changed from pr-2-range-definition-source-scope-idx to main September 28, 2026 09:35
Per tc39/ecma426#266 and tc39/ecma426#274, original scopes and generated ranges are now stored in separate 'scopes' ((string | null)[]) and 'ranges' (string) fields in the source map JSON rather than a single combined string. Each source's scopes entry is decoded with a fresh ScopeState, root scopes within the same source keep relative line/column offsets instead of resetting to 0, and missing scope information is represented by 'null' in the 'scopes' array instead of Tag.EMPTY ('A').
@szuend
szuend force-pushed the pr-3-split-scopes-and-ranges branch from c3e6b3c to b3142d0 Compare September 28, 2026 09:35
@szuend
szuend merged commit 539aae9 into main Sep 28, 2026
7 checks passed
@szuend
szuend deleted the pr-3-split-scopes-and-ranges branch September 28, 2026 09:40
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.

2 participants