Skip to content

Conversation

@gjchong25
Copy link
Contributor

Fixes the constructors for BSONTypeError and TypeError with Object.setPrototypeOf so that instanceof checks pass with both error types. The assertion override for throw in register-bson.ts is removed since it is no longer necessary with the fix. Tests making sure the errors respond properly to instanceof checks, show up with the correct names in the stack trace, and pass in input error messages correctly are added.

@dariakp dariakp merged commit d8f334b into master Nov 3, 2021
@dariakp dariakp deleted the NODE-3724 branch November 3, 2021 20:24
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.

3 participants