Skip to content

JS: handle rephined variable in access path#11565

Merged
asgerf merged 2 commits into
github:mainfrom
asgerf:js/rephined-variable-in-access-path
Dec 7, 2022
Merged

JS: handle rephined variable in access path#11565
asgerf merged 2 commits into
github:mainfrom
asgerf:js/rephined-variable-in-access-path

Conversation

@asgerf
Copy link
Copy Markdown
Contributor

@asgerf asgerf commented Dec 5, 2022

Fixes the strange behavior observed in #11488, where adding additional uses of a variable changes how it's sanitized.

Evaluation looks quiet. A few tainted nodes disappeared in a context where they are guarded by typeof v === 'number', so this fixes some spurious flow.

@asgerf asgerf added JS Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish labels Dec 5, 2022
@asgerf asgerf added no-change-note-required This PR does not need a change note and removed Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish labels Dec 6, 2022
@asgerf asgerf marked this pull request as ready for review December 6, 2022 14:49
@asgerf asgerf requested a review from a team as a code owner December 6, 2022 14:49
@asgerf
Copy link
Copy Markdown
Contributor Author

asgerf commented Dec 6, 2022

I decided not to write a change note, as it's hard to describe the circumstances that cause this to happen, and as is seen from the evaluation, those circumstances are quite rare.

@asgerf asgerf merged commit afe7872 into github:main Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants