Skip to content
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

fix(mutant-placing): regression in optional chain #3718

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Sep 6, 2022

Fix a regression in mutant placing inside an optional chain.

For example: bar?.baz[0]

- (stryMutAct_9fa48("9") ? bar.baz : (stryCov_9fa48("9"), bar?.baz)[0];"
+ stryMutAct_9fa48("9") ? bar.baz[0] : (stryCov_9fa48("9"), bar?.baz[0]);"

Fixes #3717

Fix a regression in mutant placing inside an optional chain.

For example: `bar?.baz[0]`

```diff
- (stryMutAct_9fa48("9") ? bar.baz : (stryCov_9fa48("9"), bar?.baz)[0];"
+ stryMutAct_9fa48("9") ? bar.baz[0] : (stryCov_9fa48("9"), bar?.baz[0]);"
```
@nicojs nicojs enabled auto-merge (squash) September 6, 2022 15:34
@nicojs nicojs merged commit 1228619 into master Sep 6, 2022
@nicojs nicojs deleted the fix/regression-in-optional-chain branch September 6, 2022 17:09
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.

[6.2.0] Regression with optional chaining and array (bar?.baz[0])
1 participant