Skip to content

Test + fix for recent main() change #5871

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

Merged
merged 1 commit into from
Nov 29, 2017
Merged

Test + fix for recent main() change #5871

merged 1 commit into from
Nov 29, 2017

Conversation

kripken
Copy link
Member

@kripken kripken commented Nov 28, 2017

#5850 checks at compile time if main() exists. Turns out that we very hackishly allowed main() to be added at runtime from JS, and used this in a test. I doubt anyone ever used this "feature", but there is a simple workaround (the onRuntimeInitialized callback, which is made for basically that). This PR fixes the test that broke, and adds a runtime assertion with a explanation of what to do to avoid this, and a test for that.

…t runtime. this adds a runtime assertion with an explanation and a workaround, and fixes an existing test that broke
@kripken kripken merged commit 77dc112 into incoming Nov 29, 2017
@kripken kripken deleted the no-main branch November 29, 2017 16:14
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