-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Add regexp indices (d
flag) support
#3094
Conversation
Test262 conformance changes
Fixed tests (26):
|
Codecov Report
@@ Coverage Diff @@
## main #3094 +/- ##
==========================================
- Coverage 50.42% 50.40% -0.02%
==========================================
Files 444 444
Lines 45877 45921 +44
==========================================
+ Hits 23132 23145 +13
- Misses 22745 22776 +31
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! nice work! :)
About this, |
Something goes wrong locally for me when running test262 which causes the unrelated failures (see #3111). Updated the test262 comment with the latest CI run (https://github.com/boa-dev/boa/actions/runs/5431555600/jobs/9877999206#step:10:104) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition!
This Pull Request closes #3086
It changes the following:
re.exec().indices
&re.exec().indices.groups
re.exec().groups
to pass strict test262 teststest/built-ins/RegExp/match-indices
suite. Which seems to be a separate task in itself across the Regex implementation.I'm a bit unsure about the following:
GetMatchIndexPair
andMakeMatchIndicesIndexPairArray
are currently done inline. This complicates the comments quite a bit, but not sure if it's worth it to extract them (partially).The fixedSee Add regexp indices (Date
and failingIntl402
test262 tests seem to be unrelated and just not yet updated in the gh-pages branch.d
flag) support #3094 (comment)