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

Scopes: Update binding expression parsing #106

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

jridgewell
Copy link
Member

This changes the order of binding expressions to use encode M first. If M is >= -1, then M is treated as an offset into names for the entirety of the generated range. If it's negative, then there are -M sub-ranges for this variable within the generated range, and the next VLQ is the offset into names to use for the start of the generated range.

This changes the order of binding expressions to use encode `M` first. If `M` is >= -1, then `M` is treated as an offset into `names` for the entirety of the generated range. If it's negative, then there are `-M` sub-ranges for this variable within the generated range, and the next VLQ is the offset into `names` to use for the start of the generated range.
proposals/scopes.md Outdated Show resolved Hide resolved
@jkup jkup merged commit 85ed738 into main Jun 26, 2024
2 checks passed
@jkup jkup deleted the update-binding-expressions branch June 26, 2024 11:23
github-actions bot added a commit that referenced this pull request Jun 26, 2024
SHA: 85ed738
Reason: push, by jkup

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
copybara-service bot pushed a commit to ChromeDevTools/devtools-frontend that referenced this pull request Jun 27, 2024
The PR tc39/source-map#106 changes the
'bindings' encoding of the "Scopes" proposal to encode the number of
sub-ranges first. This way, we don't have to look ahead in the VLQ
stream to decode bindings.

This CL aligns the DevTools implementation with the PR.

R=pfaffe@chromium.org

Bug: 40277685
Change-Id: Ice70c87b4176cfbe23a401b2b336fab144ca99ff
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5660062
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
github-actions bot added a commit to szuend/source-map that referenced this pull request Jul 8, 2024
SHA: 85ed738
Reason: push, by szuend

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants