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

Add support for upcoming BigInt #19

Merged
merged 3 commits into from
May 2, 2018
Merged

Conversation

emilbayes
Copy link
Collaborator

@emilbayes emilbayes commented May 2, 2018

This feature is available in Node 10 behind a flag and in Chrome Canary. This change will not break runtimes that do not support BigInt.

I also took the liberty to add the n prefix, as you do in source code to create a BigInt, so there is a distinction between normal Number and BigInt.

This bug was found when tape printed {} for BigInts in assertions

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks! Could you provide test cases for this? The tests can (and should) skip themselves when in an environment without native bigint support.

@emilbayes
Copy link
Collaborator Author

@ljharb ^ Done :)

@ljharb ljharb merged commit 356c66a into inspect-js:master May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants