From:  David Bruant <>
Date:  12 Jun 2016 00:47:33 Hong Kong Time

Re: Improving Date.parse



Thanks a lot for working on this!

Sharing a piece of cross-browser inconsistency that has affected me 
working on a real application in the past


Le 08/06/2016 23:28, Morgan Reece a écrit :
> Hi all,
> Date.parse has been breaking cross-engine compatibility for over a decade
> now, and it's easy to see why when reading the spec:
> :
>     "The function first attempts to parse the format of the String according
>     to the rules (including extended years) called out in Date Time String
>     Format ( If the String does not conform to that format *the
>     function may fall back to any implementation-specific heuristics or
>     implementation-specific date formats*."
> After spending some time looking at the date parsers in SpiderMonkey, V8,
> and Chakra I think the most sensible way to fix this situation once and for
> all is to create a date parsing grammar and lobby to have it put into the
> spec. I've been fiddling around with a working implementation for the past
> few days and would appreciate any feedback or improvements.
> You can find it at:
> My next step will be to actually write up the proposal (in the readme of
> the github repo found from that link), extra eyes on that would be nice as
> well!
> Thanks,
> Morgan
> _______________________________________________
> dev-tech-js-engine-internals mailing list