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

unbox BigInt primitives in shouldGetter #1349

Merged
merged 2 commits into from Jun 17, 2020
Merged

Conversation

dwelle
Copy link
Contributor

@dwelle dwelle commented Jun 17, 2020

Partially addresses #1321 so that global should getter unboxes primitive BigInt values.

Lemme know if I should write any tests.

@dwelle dwelle requested a review from a team as a code owner June 17, 2020 14:36
@keithamus
Copy link
Member

Thanks for doing this @dwelle 👍

Please could you write a couple of tests just so we don't end up regressing this behaviour? Thanks!

@dwelle
Copy link
Contributor Author

dwelle commented Jun 17, 2020

I've written tests for the unboxing behavior (for other types as well). Hopefully I didn't duplicate it from somewhere else. Used a custom assertion -- not sure if I should have used chai assertions for this (considering BigInt support isn't yet added).

Also, it seems the makefile is broken on Windows --- at least the test-chrome part, so I just ran test-node.

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Wonderful! Thanks @dwelle!

@keithamus keithamus merged commit b91d0a8 into chaijs:master Jun 17, 2020
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.

None yet

2 participants