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

Add a URL class to boa_runtime #4004

Merged
merged 4 commits into from
Oct 9, 2024
Merged

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 24, 2024

Some methods are NOT currently supported (some don't make sense outside of a browser context). They are still implemented but will throw a JavaScript Error.

Supported methods should follow the specification perfectly and are tested for it.

Notably missing is the URLSearchParams class which is complex with the current Boa API (making iterables is hard) and should be done in a separate PR.

Some methods are NOT currently supported (some don' make sense
outside of a browser context). They are still implemented but
will throw a JavaScript Error.

Supported methods should follow the specification perfectly.
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 42.00000% with 29 lines in your changes missing coverage. Please review.

Project coverage is 52.84%. Comparing base (6ddc2b4) to head (dd57857).
Report is 273 commits behind head on main.

Files with missing lines Patch % Lines
core/runtime/src/url.rs 41.17% 20 Missing ⚠️
core/string/src/lib.rs 0.00% 5 Missing ⚠️
core/runtime/src/lib.rs 70.00% 3 Missing ⚠️
cli/src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4004      +/-   ##
==========================================
+ Coverage   47.24%   52.84%   +5.60%     
==========================================
  Files         476      482       +6     
  Lines       46892    46718     -174     
==========================================
+ Hits        22154    24689    +2535     
+ Misses      24738    22029    -2709     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HalidOdat HalidOdat requested a review from a team September 24, 2024 23:11
@HalidOdat HalidOdat added enhancement New feature or request builtins PRs and Issues related to builtins/intrinsics labels Sep 24, 2024
@HalidOdat HalidOdat added this to the next-release milestone Sep 24, 2024
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Besides the comment, this looks good to me! :)

core/runtime/src/url.rs Outdated Show resolved Hide resolved
@HalidOdat HalidOdat requested a review from a team September 28, 2024 12:44
Copy link
Member

@raskad raskad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@raskad raskad added this pull request to the merge queue Oct 9, 2024
Merged via the queue into boa-dev:main with commit 94d08fe Oct 9, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins PRs and Issues related to builtins/intrinsics enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants