Skip to content

Conversation

@jamiees2
Copy link
Collaborator

Promise.prototype.finally will rethrow the error that caused it to be called in a new promise, so we need to make sure to either handle it, or pass it on to the caller to handle.

Fixes #28

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
@jamiees2 jamiees2 merged commit 3410898 into master Feb 11, 2022
@jamiees2 jamiees2 deleted the fix-finally branch February 11, 2022 17:58
github-actions bot added a commit that referenced this pull request Feb 11, 2022
* fix finally usage

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>

* also wrap in block

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>

* fix test

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>

* forgot to save

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com> 3410898
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.

Question: How do we handle deferred promise rejections due to dropped entries?

1 participant