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

[Merged by Bors] - Handle surrogates in String.fromCodePoint #2659

Closed
wants to merge 4 commits into from

Conversation

jedel1043
Copy link
Member

@jedel1043 jedel1043 commented Mar 14, 2023

This Pull Request fixes #2657.

It changes the following:

  • Handles surrogates when trying to convert f64 codepoints to u16.
  • Replaces abs().floor() with truncate on is_float_integer.

@jedel1043 jedel1043 added execution Issues or PRs related to code execution Internal Category for changelog labels Mar 14, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone Mar 14, 2023
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 94,277 94,277 0
Passed 71,992 71,992 0
Ignored 17,324 17,324 0
Failed 4,961 4,961 0
Panics 12 12 0
Conformance 76.36% 76.36% 0.00%

@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #2659 (b940ea9) into main (e4365b5) will increase coverage by 0.55%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2659      +/-   ##
==========================================
+ Coverage   49.20%   49.76%   +0.55%     
==========================================
  Files         390      383       -7     
  Lines       39562    39179     -383     
==========================================
+ Hits        19467    19496      +29     
+ Misses      20095    19683     -412     
Impacted Files Coverage Δ
boa_engine/src/builtins/number/mod.rs 81.60% <100.00%> (ø)
boa_engine/src/builtins/string/mod.rs 63.38% <100.00%> (+3.61%) ⬆️

... and 17 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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! Looks good to me! :)

Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks :)

@Razican
Copy link
Member

Razican commented Mar 14, 2023

bors r+

bors bot pushed a commit that referenced this pull request Mar 14, 2023
This Pull Request fixes #2657.

It changes the following:

- Handles surrogates when trying to convert f64 codepoints to u16.
- Replaces `abs().floor()` with `truncate` on `is_float_integer`.
@bors
Copy link

bors bot commented Mar 14, 2023

This PR was included in a batch that was canceled, it will be automatically retried

bors bot pushed a commit that referenced this pull request Mar 14, 2023
This Pull Request fixes #2657.

It changes the following:

- Handles surrogates when trying to convert f64 codepoints to u16.
- Replaces `abs().floor()` with `truncate` on `is_float_integer`.
@bors
Copy link

bors bot commented Mar 14, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Handle surrogates in String.fromCodePoint [Merged by Bors] - Handle surrogates in String.fromCodePoint Mar 14, 2023
@bors bors bot closed this Mar 14, 2023
@bors bors bot deleted the fix-2657 branch March 14, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execution Issues or PRs related to code execution Internal Category for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: Checked above the range of nextcp
3 participants