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

Allow resizing of underlying ArrayBuffer from Rust #4082

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Dec 11, 2024

I have an API that might truncate an ArrayBuffer passed in (or make it bigger). I have to call resize() from Rust for a buffer passed by JavaScript, and this is the best way I found to do that.

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes missing coverage. Please review.

Project coverage is 53.77%. Comparing base (6ddc2b4) to head (79fab02).
Report is 322 commits behind head on main.

Files with missing lines Patch % Lines
core/engine/src/builtins/array_buffer/mod.rs 60.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4082      +/-   ##
==========================================
+ Coverage   47.24%   53.77%   +6.53%     
==========================================
  Files         476      485       +9     
  Lines       46892    48150    +1258     
==========================================
+ Hits        22154    25895    +3741     
+ Misses      24738    22255    -2483     

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

@hansl hansl requested a review from a team December 13, 2024 12:33
@jedel1043
Copy link
Member

jedel1043 commented Dec 13, 2024

Does it make sense to merge this after #4083 gets merged? I think it would be easier to rebase this than to rebase the other PR which is a lot bigger.

@hansl
Copy link
Contributor Author

hansl commented Dec 14, 2024

Sure I'll wait for that PR to be merged then rebase this one.

@hansl
Copy link
Contributor Author

hansl commented Dec 19, 2024

@jedel1043 Please review and ready for merge :) The other PR is back to draft for the moment.

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Wrong review

@hansl hansl requested a review from jedel1043 December 19, 2024 04:39
Copy link
Member

@jedel1043 jedel1043 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!

@hansl hansl enabled auto-merge December 19, 2024 05:52
@nekevss nekevss requested a review from a team December 19, 2024 18:57
@hansl hansl added this pull request to the merge queue Dec 19, 2024
Merged via the queue into boa-dev:main with commit 3777df0 Dec 19, 2024
14 checks passed
@hansl hansl deleted the bytesarray-mut branch December 19, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants