Skip to content

Reflect: Fix regression with prototype of .has - #600

Merged
rbri merged 1 commit into
HtmlUnit:masterfrom
duonglaiquang:duong_regression
May 30, 2023
Merged

rbri merged 1 commit into
HtmlUnit:masterfrom
duonglaiquang:duong_regression

Conversation

@duonglaiquang

Copy link
Copy Markdown
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

rbri commented May 30, 2023

Copy link
Copy Markdown
Member

Thanks....

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

@duonglaiquang

Copy link
Copy Markdown
Contributor Author

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

@rbri

rbri commented May 30, 2023

Copy link
Copy Markdown
Member

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