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 prototype ID super calls #38

Merged
merged 2 commits into from
Apr 5, 2023
Merged

Fix prototype ID super calls #38

merged 2 commits into from
Apr 5, 2023

Conversation

Fuyukai
Copy link
Contributor

@Fuyukai Fuyukai commented Apr 5, 2023

The super calls prevented assigning to arbitrary values on e.g. functions (which is used by some polyfills) as it would throw an error. Note that only some classes had the super call, whereas the others returned 0; I assume that this was inserted during a reformat commit a few years ago as upstream returns zero for all of them.

this seemingly only serves to be annoying and was likely accidental
during code cleanup.
@Fuyukai
Copy link
Contributor Author

Fuyukai commented Apr 5, 2023

This also fixes #32 which has the same root cause (findPrototypeId was changed to use a super call).

@LatvianModder LatvianModder merged commit b61019b into KubeJS-Mods:1.19/dev Apr 5, 2023
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