Closed modulovalue closed 2 years ago
See: https://esprima.org/demo/parse.html?code=-999999984306749440%3B
Source:
-999999984306749440;
Syntax tab:
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "UnaryExpression", "operator": "-", "argument": { "type": "Literal", "value": 999999984306749400, "raw": "999999984306749440" }, "prefix": true } } ], "sourceType": "script" }
Notice how the value is not 999999984306749440 but 999999984306749400
Sorry for the false alarm, I suppose that's just how JS works. :/
See: https://esprima.org/demo/parse.html?code=-999999984306749440%3B
Source:
Syntax tab:
Notice how the value is not 999999984306749440 but 999999984306749400