Skip to content

Conversation

addaleax
Copy link
Collaborator

(This is intended to be merged as part of #849)

Copy link
Contributor

@rose-m rose-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks great! Never knew that... intended behavior on destructuring in catch, etc. :D

} catch (_err) {
if (!err || !_err[Symbol.for('@@mongosh.uncatchable')]) {
bar3();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for the sake of correctness there should be the throw in the else branch

Suggested change
}
} else {
throw _err;
}

@addaleax
Copy link
Collaborator Author

I’ll close this because @rose-m has seen this PR and that’s the purpose here :P

@addaleax addaleax closed this May 12, 2021
@addaleax addaleax deleted the uncatchable-exceptions branch May 12, 2021 12:09
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