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

Fix double callback on throw #3

Merged
merged 1 commit into from
Aug 22, 2016
Merged

Conversation

SomeoneWeird
Copy link
Member

@SomeoneWeird SomeoneWeird commented Aug 19, 2016

See #2 for context, I think this is the correct solution.

Not sure how I can make this test pass, as we need it to throw to unwind the stack, to make sure we can't end up back in Transport territory, but mocha catches that, and fails the test, as we can't handle it. Open to suggestions.

@adriancb
Copy link

Using Mocks somehow?

@SomeoneWeird SomeoneWeird force-pushed the fix-double-callback-2 branch from c2ae99a to 4d1d12a Compare August 20, 2016 15:29
@SomeoneWeird
Copy link
Member Author

Ok, got it working by abusing domains.

@jasonk000
Copy link

+1 i like the solution, clever work on the test case :)

@SomeoneWeird SomeoneWeird merged commit 04c2e8d into master Aug 22, 2016
@SomeoneWeird SomeoneWeird deleted the fix-double-callback-2 branch August 22, 2016 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants