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

feat: add BigInt support #387

Closed
wants to merge 1 commit into from
Closed

feat: add BigInt support #387

wants to merge 1 commit into from

Conversation

nswbmw
Copy link

@nswbmw nswbmw commented Dec 21, 2018

No description provided.

@sanex3339
Copy link
Contributor

sanex3339 commented Apr 25, 2020

@michaelficarra what should I do that this PR has been merged? Add tests?

My project requires the support of bigint
javascript-obfuscator/javascript-obfuscator#588

@@ -2312,6 +2312,11 @@
return 'null';
}

// BigInt, eg: 1n
if (typeof expr.bigint === 'string') {
return expr.raw;
Copy link
Member

Choose a reason for hiding this comment

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

The raw field is not guaranteed to be there.

Suggested change
return expr.raw;
return expr.bigint + 'n';

@michaelficarra
Copy link
Member

@sanex3339 Yes please. This PR would need tests before being merged.

@sanex3339
Copy link
Contributor

@michaelficarra Tests added in #421.
This PR can be closed.

@alexandertrefz
Copy link

alexandertrefz commented May 26, 2022

@michaelficarra Is there anything blocking this?
Nevermind, the feature seems to have landed in master, just awaiting release.

@nswbmw nswbmw closed this by deleting the head repository Nov 8, 2022
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.

4 participants