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

BigInt NumericValue definition missing exponent #2443

Closed
apsillers opened this issue Jun 24, 2021 · 1 comment · Fixed by #2450
Closed

BigInt NumericValue definition missing exponent #2443

apsillers opened this issue Jun 24, 2021 · 1 comment · Fixed by #2450
Labels

Comments

@apsillers
Copy link

apsillers commented Jun 24, 2021

ES2020 defines the value of a parsed BigInt token in 11.8.3.2 as

  1. Let n be the mathematical integer number of code points in DecimalDigits.
  2. Let mv be (the MV of NonZeroDigit × 10n) plus the MV of DecimalDigits.

ES2021 erroneously dropped the n exponent in 12.8.3.2, and it is missing in the current draft:

  1. Let n be the number of code points in DecimalDigits, excluding all occurrences of NumericLiteralSeparator.
  2. Let mv be (the MV of NonZeroDigit × 10) plus the MV of DecimalDigits.
@jmdyck
Copy link
Collaborator

jmdyck commented Jun 24, 2021

Change occurred in PR #2007 (at this line).

The point was presumably to remove just the <sub>ℝ</sub>, but the <sup>_n_</sup> also got deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants