Skip to content

Paramless then catch#71

Draft
TwitchBronBron wants to merge 4 commits intomasterfrom
paramless-then-catch
Draft

Paramless then catch#71
TwitchBronBron wants to merge 4 commits intomasterfrom
paramless-then-catch

Conversation

@TwitchBronBron
Copy link
Copy Markdown
Member

The callbacks for .then and .catch currently require the result param. And they should. However, if you have a paramless callback, we currently don't even call it. We should do the same recovery that we do for context. Yes it's bad practice, but calling their function with giant warnings is better than not calling it at all.

This PR attempts to solve that. I still have a bug somewhere that's causing an infinite loop. gotta fix that, but the implementation is pretty close.

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