Skip to content

[BUGFIX] Fix STRICT_SYNTAX crashing scripted classes extending other scripts + instantiation via PolymodStaticClassReference.instantiate - #539

Merged
AbnormalPoof merged 2 commits into
FunkinCrew:developfrom
nykwono:fixes-for-strict-syntax
Oct 7, 2026
Merged

AbnormalPoof merged 2 commits into
FunkinCrew:developfrom
nykwono:fixes-for-strict-syntax

Conversation

@nykwono

@nykwono nykwono commented Oct 7, 2026 •

Copy link
Copy Markdown

This PR fixes a bug that made POLYMOD_STRICT_SYNTAX un-usable for scripts that happen to extend other scripts because checkPrivateAccess would never take into account whether the function in question was called from a scripted superclass rather than the parent class.

This also fixes a bug where scripted classes with the same class package or imported would not be properly instantiated. (I did this in another PR but I realized it was really stupid that I did so I'm gonna go back on that change to avoid conflicts)

@nykwono nykwono changed the title [BUGFIX/STRICT_SYNTAX] Fix STRICT_SYNTAX crashing scripts that extended other scripts + Always instantiate via PolymodStaticClassReference.instantiate [BUGFIX] Fix STRICT_SYNTAX crashing scripted classes extending other scripts + instantiation via PolymodStaticClassReference.instantiate Oct 7, 2026
@AbnormalPoof
AbnormalPoof merged commit daeb812 into FunkinCrew:develop Oct 7, 2026
9 checks passed
@nykwono
nykwono deleted the fixes-for-strict-syntax branch October 7, 2026 06:04
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