feat!: change vendor extension tag to 'V' by szuend · Pull Request #22 · ChromeDevTools/source-map-scopes-codec · GitHub
Skip to content

feat!: change vendor extension tag to 'V' - #22

Merged
szuend merged 1 commit into
mainfrom
vendor-extension-tag-v
Oct 13, 2026
Merged

szuend merged 1 commit into
mainfrom
vendor-extension-tag-v

Conversation

@szuend

@szuend szuend commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Implements tc39/ecma426#278. The spec now reserves the 'V' tag (0x15) for vendor extension items instead of '/'. '/' has the VLQ continuation bit set and can't be used as a single character tag.

Note that the previous Tag.VENDOR_EXTENSION value 0x63 didn't match '/' either (it encodes as "jD").

Also expands test coverage for vendor extensions: interspersed with known scope and range items in strict mode, multi-character and out-of-bounds name indices, and rejection of the legacy tags.

Implements tc39/ecma426#278. The spec now
reserves the 'V' tag (0x15) for vendor extension items instead of '/'.
'/' has the VLQ continuation bit set and can't be used as a single
character tag.

Note that the previous Tag.VENDOR_EXTENSION value 0x63 didn't match
'/' either (it encodes as "jD").

Also expands test coverage for vendor extensions: interspersed with
known scope and range items in strict mode, multi-character and
out-of-bounds name indices, and rejection of the legacy tags.
@szuend
szuend requested a review from OrKoN October 13, 2026 06:21

@OrKoN OrKoN left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new ignores out-of-bounds name indices in strict mode test cements that STRICT mode never validates the vendor-extension name index, even though the spec defines it as an index into names. Worth deciding explicitly whether STRICT should route it through #resolveName (consistent with other indices) or stay lenient with a comment.

@szuend

szuend commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

@szuend
szuend merged commit 33baa6f into main Oct 13, 2026
7 checks passed
@szuend
szuend deleted the vendor-extension-tag-v branch October 13, 2026 06:51
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