Skip to content

Reflect: Fix regression with prototype of .has #600

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

Merged
merged 1 commit into from
May 30, 2023

Conversation

duonglaiquang
Copy link
Contributor

This PR does the following:

  • Fix a regression where the prototype of Reflect.has is null, was caused by my previous Fix for Reflect's properties having an incorrect scope #594 [1]
    [1] Moving the property initialization from setParentScope() to the constructor broke initialization of new FunctionObject instances because the prototype is pulled from the parent scope.

@rbri rbri merged commit 22368e0 into HtmlUnit:master May 30, 2023
@duonglaiquang duonglaiquang deleted the duong_regression branch May 30, 2023 09:10
@rbri
Copy link
Member

rbri commented May 30, 2023

Thanks....

and good news, the rhino based impl does not have this problem ;-)

@duonglaiquang
Copy link
Contributor Author

Sorry for the bug 🐛
And I'm looking forward to that update 😁

@rbri
Copy link
Member

rbri commented May 30, 2023

will try to make a pr for the negative index handling this week and i have to finish the construct() impl.

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.

2 participants