You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix date parsing in case there is more than nine initial digits
Backport from upstream:
bellard/quickjs@030333c
Most engines like v8, and current versions of spidermonkey versions (v128 at
least) return NaN while QuickJS parses up to 9 digits at a time, then tries to
parse the rest. Trying to parse extra digits can sometimes produce random
garbage. To fix it, when parsing the initial integer parse as many digits as we
can (max = 0) instead of just 9.
Add a few tests, including uncommenting some previous ones, and ensure they
pass on v8 version 11 (upstream didn't include the extra tests).
0 commit comments