Skip to content

Add tests for RegExp Buffer Boundaries - #4975

Open
rbuckton wants to merge 11 commits into
tc39:mainfrom
rbuckton:regexp-buffer-boundaries
Open

Add tests for RegExp Buffer Boundaries#4975
rbuckton wants to merge 11 commits into
tc39:mainfrom
rbuckton:regexp-buffer-boundaries

Conversation

@rbuckton

@rbuckton rbuckton commented Mar 6, 2026

Copy link
Copy Markdown
Member

Adds tests for RegExp Buffer Boundaries

@gibson042 gibson042 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, pending proposal advancement.

@ptomato ptomato added the awaiting stage 2.7 Supports a "Stage 2" feature label May 6, 2026
@rbuckton

rbuckton commented May 20, 2026

Copy link
Copy Markdown
Member Author

Updated per the consensus to add \Z using the (?=(?:\r\n|\n|\r|\u2028|\u2029)?(?-m:$)) semantics.

@rbuckton
rbuckton requested a review from gibson042 May 20, 2026 13:32

@gibson042 gibson042 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please split the files to separate assertions that depend upon feature "regexp-v-flag" from those that do not. See also other suggestions below.

Comment thread test/built-ins/RegExp/buffer-boundaries/syntax/u-mode.js
Comment thread test/built-ins/RegExp/buffer-boundaries/syntax/v-mode.js Outdated
@rbuckton

Copy link
Copy Markdown
Member Author

Also updated the descriptions for the annex-b identity escape tests

@gibson042 gibson042 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, just one final suggestion.

@rbuckton

Copy link
Copy Markdown
Member Author

Missed one of the comments

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