Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create decodeURI and encodeURI #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Create decodeURI and encodeURI #179

wants to merge 2 commits into from

Conversation

pedrobslisboa
Copy link
Collaborator

@pedrobslisboa pedrobslisboa commented Nov 3, 2024

Issue #174

Description

This PR attempts to add decodeURI, decodeURIComponent, encodeURI, and encodeURIComponent. It was strongly inspired by quick and aligning with JS tests: #174 (comment)

Process

The first attempt was basic copying the C code of quickjs as ocaml, but there were some issues that I wasn't able to identify what was wrong. That's why, besides its strong inspiration from Quickjs, the code differs from it in some approaches.

My eyes are also used to this code, so you may find some improvements that I don't, and please comment here about them.

@pedrobslisboa pedrobslisboa self-assigned this Nov 3, 2024
@pedrobslisboa pedrobslisboa added the enhancement New feature or request label Nov 3, 2024
@pedrobslisboa pedrobslisboa marked this pull request as draft November 3, 2024 23:06
@pedrobslisboa pedrobslisboa force-pushed the feat/decode_uri branch 5 times, most recently from 1563035 to 225eff3 Compare November 4, 2024 20:33
@pedrobslisboa pedrobslisboa marked this pull request as ready for review November 4, 2024 20:54
@pedrobslisboa pedrobslisboa changed the title [WIP] Create decodeURI and encodeURI Create decodeURI and encodeURI Nov 4, 2024
@pedrobslisboa pedrobslisboa force-pushed the feat/decode_uri branch 3 times, most recently from c19c4f3 to 6bdef39 Compare November 4, 2024 22:16
@pedrobslisboa pedrobslisboa marked this pull request as draft November 4, 2024 22:42
@pedrobslisboa pedrobslisboa force-pushed the feat/decode_uri branch 2 times, most recently from 543d85c to a3cc2bb Compare November 4, 2024 23:11
@pedrobslisboa pedrobslisboa changed the base branch from main to feat/update-reason-dep November 4, 2024 23:30
@pedrobslisboa pedrobslisboa marked this pull request as ready for review November 4, 2024 23:31
* main:
  Add useSyncExternalStore hooks (#177)
@pedrobslisboa pedrobslisboa changed the base branch from feat/update-reason-dep to main November 5, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant