Skip to content

Load system functions before running config#434

Merged
johnste merged 1 commit intojohnste:mainfrom
belak-forks:belak/global-system-funcs
Jun 4, 2025
Merged

Load system functions before running config#434
johnste merged 1 commit intojohnste:mainfrom
belak-forks:belak/global-system-funcs

Conversation

@belak
Copy link
Copy Markdown
Contributor

@belak belak commented Jun 3, 2025

This fixes an issue where functions like finicky.getSystemInfo weren't available until after the config had already been loaded. In practical terms, these methods weren't available until a matcher was being called.

This change fixes the bug by removing the setter methods and setting the functions immediately when the finicky object is created in the VM, rather than after all JS has been loaded.

Fixes #429

This fixes an issue where functions like finicky.getSystemInfo weren't
available until after the config had already been loaded. In practical
terms, these methods weren't available until a matcher was being called.

This change fixes the bug by removing the setter methods and setting the
functions immediately when the finicky object is created in the VM,
rather than after all JS has been loaded.

Fixes #429
@johnste
Copy link
Copy Markdown
Owner

johnste commented Jun 4, 2025

Wonderful, thank you so much!

@johnste johnste merged commit 03cf042 into johnste:main Jun 4, 2025
@belak belak deleted the belak/global-system-funcs branch October 10, 2025 05:23
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.

finicky.getSystemInfo() and other utilities not available at top level

2 participants