Last active
January 23, 2025 10:54
-
-
Save rendro/525bbbf85e84fa9042c2 to your computer and use it in GitHub Desktop.
Parse document.cookie into object
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"What ain't tested, ain't working"
The only implementation in the comments that passes most of the tests from jshttp/cookie is the one from @kapouer: https://gist.github.com/rendro/525bbbf85e84fa9042c2?permalink_comment_id=3084097#gistcomment-3084097
So I've fixed the remaining failing tests and refactored a bit the code.
Here the result:
You can retrieve this implementation + all the tests and benchs in this gist: https://gist.github.com/tkrotoff/a1f83070067300174fbe9f35d0075dd3