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

Add Loaded event to DefaultModuleLoader #1373

Merged
merged 1 commit into from Dec 8, 2022

Conversation

Jither
Copy link
Contributor

@Jither Jither commented Dec 8, 2022

As discussed on Gitter.

Simple addition of event to the default module loader, which is triggered when the loader loads a module. This is helpful for e.g. debuggers and other dev tools, which may need to load the same sources as the engine.

Since the module's AST is readily available, and is also currently needed by debuggers (e.g. for determining possible breakpoint positions), the event passes the AST, along with the source ID generated by the loader.

Copy link
Collaborator

@lahma lahma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, thank you!

@lahma lahma merged commit 1a7b442 into sebastienros:main Dec 8, 2022
@Jither Jither deleted the module-loaded-event branch December 8, 2022 09:41
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.

None yet

2 participants