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
fix: support bigints in update expressions for private fields #14311
Conversation
magic-akari
commented
Feb 26, 2022
•
edited by gitpod-io
bot
edited by gitpod-io
bot
Q | A |
---|---|
Fixed Issues? | Fixes #14302 |
Patch: Bug Fix? | 👍 |
Major: Breaking Change? | |
Minor: New Feature? | |
Tests Added + Pass? | Yes |
Documentation PR Link | |
Any Dependency Changes? | |
License | MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -43,5 +43,19 @@ class Cl { | |||
|
|||
this.#privateFieldValue = -(this.#privateFieldValue ** this.#privateFieldValue); | |||
this.publicFieldValue = -(this.publicFieldValue ** this.publicFieldValue); | |||
|
|||
this.#privateField = 0n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split this new test into a new one (updates-bigint
) and add "minNodeVersion": "10.0.0"
to its options.json
file? Because older versions don't support bigints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done