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

LibJS: Preserve the original this value #2231

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

yyny
Copy link
Contributor

@yyny yyny commented Nov 8, 2024

As shown in the test added by this patch, it was possible to re-assign the this value of a member function call while it was executing. Let's copy the original this value like we already do with the callee.

Fixes #2226.

As shown in the test added by this patch, it was possible to re-assign
the `this` value of a member function call while it was executing.
Let's copy the original this value like we already do with the callee.

Fixes LadybirdBrowser#2226.
@awesomekling awesomekling merged commit e53e1d3 into LadybirdBrowser:master Nov 8, 2024
5 of 6 checks passed
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.

LibJS: Local variables are assumed to not change when generating calls
2 participants