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

Always convert large (>= 2^53) integers to string for JS #1218

Merged
merged 2 commits into from
Jun 1, 2020
Merged

Always convert large (>= 2^53) integers to string for JS #1218

merged 2 commits into from
Jun 1, 2020

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Jun 1, 2020

Important as IDs are often integers and they must never be rounded.

see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER

@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #1218 into develop will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #1218   +/-   ##
==========================================
  Coverage      72.68%   72.69%           
- Complexity      2546     2548    +2     
==========================================
  Files            130      130           
  Lines           6245     6247    +2     
==========================================
+ Hits            4539     4541    +2     
  Misses          1706     1706           
Impacted Files Coverage Δ Complexity Δ
src/FormField/Lookup.php 58.95% <100.00%> (ø) 49.00 <0.00> (ø)
src/jsExpression.php 84.81% <100.00%> (+0.39%) 31.00 <0.00> (+2.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56e414a...80fb8c9. Read the comment docs.

Copy link
Member

@DarkSide666 DarkSide666 left a comment

Choose a reason for hiding this comment

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

LGTM

@mvorisek mvorisek merged commit f7c744a into atk4:develop Jun 1, 2020
@mvorisek mvorisek deleted the do_not_round_integers branch June 1, 2020 14:20
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.

2 participants