-
-
Notifications
You must be signed in to change notification settings - Fork 574
linter(no-loss-of-precision): False Positive 1000000000000000128 #11436
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
Comments
Also, how did you run into this case out of interest? |
I think the implementation in ESLint is correct. My example code includes |
this feels very silly but basically the number gets coerced to
|
OXC playground: https://playground.oxc.rs/#eNpVj9FqwzAMRX9l6KmFMJLCYOR55HVj+wLFUYrBsYIkdy0l/167IYH6xZKQzr33Dg5aODT162tOn8d3485faTjUxzeogKG9g6RYPr1Fwyu0JokqCD7aVqvjmfbmNvUcts4Eo44sE7QjBqWlghlFSQoRQ+D/X7Ik8TuZ+oG6FJ15znrr+SyUdy/0g0JR12lGFPEnIte7wso0lDNlZ0B6qpuPnMErBzQavsgFFCz4TNrcOB7oTM+AFLEP9MdJHE0472qTj370m57jaMKhy9bL0YWkZ83pV+CyPACwRHjd
eslint playground:
https://eslint.org/play/#eyJ0ZXh0IjoiLyplc2xpbnQgbm8tbG9zcy1vZi1wcmVjaXNpb246IFwiZXJyb3JcIiovXG5cbmNvbnN0IGEgPSAxMjM0NVxuY29uc3QgYiA9IDEyMy40NTZcbmNvbnN0IGMgPSAxMjNlMzRcbmNvbnN0IGQgPSAxMjMwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMFxuY29uc3QgZSA9IDB4MUZGRkZGRkZGRkZGRkZcbmNvbnN0IGYgPSA5MDA3MTk5MjU0NzQwOTkxXG5jb25zdCBnID0gOTAwN18xOTkyNTQ3NDA5XzkxXG5jb25zdCB4ID0gKDEwMDAwMDAwMDAwMDAwMDAxMjgpLnRvRml4ZWQoMCkiLCJvcHRpb25zIjp7InJ1bGVzIjp7fSwibGFuZ3VhZ2VPcHRpb25zIjp7InBhcnNlck9wdGlvbnMiOnsiZWNtYUZlYXR1cmVzIjp7fX19fX0=
The text was updated successfully, but these errors were encountered: