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

Async fix #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Async fix #6

wants to merge 2 commits into from

Conversation

jakerella
Copy link

There was an issue with unhandled rejected Promises because th primary async function did not return a Promise. This PR adds a try...catch block inside the async function to catch any errors generated inside an awaited Promise.

It also adds a call to QUnit.start() in situations where QUnit.config.autostart is false... I actually recommend this being the default scenario and adding a recommendation to set this inside the QUnit test page, otherwise you can get weird scenarios (I was anyway).

…lly capturing errors generated in awaited Promises because no Promise was returned from the async fn
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.

1 participant