Repository navigation
fix(regexp): enable Unicode matching for the v flag - #5580
Merged
jedel1043 merged 1 commit intoOct 16, 2026
Merged
Conversation
sovopr
marked this pull request as ready for review
October 12, 2026 19:47
jedel1043
enabled auto-merge
October 16, 2026 13:54
Test262 conformance changes
Broken tests (2):Tested main commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5580 +/- ##
===========================================
+ Coverage 47.24% 63.07% +15.83%
===========================================
Files 476 536 +60
Lines 46892 60327 +13435
===========================================
+ Hits 22154 38054 +15900
+ Misses 24738 22273 -2465 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5571.
/^(?:\D\b)$/iv.test("\u212a")currently returns false. The conversion toregress::Flagsenables Unicode-aware matching only foru, leavingvword boundaries in non-Unicode mode. Enable the backend'sunicodeflag for either JavaScript Unicode flag, while preserving the separateunicode_setsflag and the public.unicode/.unicodeSetsgetters.The regression covers Kelvin sign and long s with
iv,iu, plainv, and plaini, plus\w,\W, and the exposed flag getters. This follows HasEitherUnicodeFlag and WordCharacters.Validation:
cargo test -p boa_engine -p boa_parser --lib -j 2: 1,452 passed, 1 ignored.cargo fmt --all --checkandgit diff --checkpass.-D warnings -A clippy::incompatible_msrv: strict Clippy on this ARM Mac reports an existing MSRV diagnostic atcore/engine/src/builtins/number/conversions.rs:85(__jcvt, introduced by Replace asm!() with __jcvt() on AArch64 for f64 → i32 conversion #5577, outside this change). Toolchain: Rust 1.98.0.AI assistance: OpenAI Codex assisted with implementation and testing.