Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibJS: Early return from Date string parsing on empty string
Loading Ladybird on Github results in 37 debug logs about being unable to parse an empty Date string. This log is intended to catch Date formats we do not support to detect web compatability problems, which makes this case not particuarly useful to log. Instead of trying to parse all of the different date formats and logging that the string is not valid, let's just return NAN immediately.
- Loading branch information