close
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
Copy link
Copy Markdown
Member

@rbuckton rbuckton commented Mar 6, 2026

Adds tests for RegExp Buffer Boundaries

Copy link
Copy Markdown
Member

@gibson042 gibson042 left a comment

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
Copy link
Copy Markdown
Member Author

rbuckton commented May 20, 2026

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
Copy link
Copy Markdown
Member

@gibson042 gibson042 left a comment

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

Copy link
Copy Markdown
Member

@gibson042 gibson042 left a comment

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

awaiting stage 2.7 Supports a "Stage 2" feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants