Hi,

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
https://bugs.chromium.org/p/v8/issues/detail?id=3936

David

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:

20.3.3.2 <http://www.ecma-international.org/ecma-262/6.0/#sec-date.parse>:

    "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 (20.3.1.16). 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: http://mrrrgn.com/date/

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
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to