Skip to content

fix(runtime): support cloning DataView objects#5235

Open
yush-1018 wants to merge 1 commit intoboa-dev:mainfrom
yush-1018:fix-dataview-clone
Open

fix(runtime): support cloning DataView objects#5235
yush-1018 wants to merge 1 commit intoboa-dev:mainfrom
yush-1018:fix-dataview-clone

Conversation

@yush-1018
Copy link
Contributor

Fixes #5167

This PR adds support for structuredClone() to clone DataView objects. Let me know if anything needs changes!

@yush-1018 yush-1018 requested a review from a team as a code owner March 23, 2026 09:31
@github-actions github-actions bot added Waiting On Review Waiting on reviews from the maintainers C-Tests Issues and PRs related to the tests. C-Builtins PRs and Issues related to builtins/intrinsics C-Runtime Issues and PRs related to Boa's runtime features and removed Waiting On Review Waiting on reviews from the maintainers labels Mar 23, 2026
@github-actions github-actions bot added this to the v1.0.0 milestone Mar 23, 2026
@github-actions
Copy link

github-actions bot commented Mar 23, 2026

Test262 conformance changes

Test result main count PR count difference
Total 52,963 52,963 0
Passed 50,732 50,732 0
Ignored 1,426 1,426 0
Failed 805 805 0
Panics 0 0 0
Conformance 95.79% 95.79% 0.00%

Tested main commit: 8fcbfcbb8b9e70fe878d28376a6496eaa57a70d7
Tested PR commit: 8fec740e11171f93d143f360108feb822ef5fc72
Compare commits: 8fcbfcb...8fec740

/// - [TC39 proposal][spec]
///
/// [spec]: https://tc39.es/proposal-joint-iteration/#sec-iterator.zip
fn zip(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
Copy link
Member

Choose a reason for hiding this comment

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

I think you pushed unrelated commits from another PR 😅

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 7.69231% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.77%. Comparing base (6ddc2b4) to head (8fec740).
⚠️ Report is 918 commits behind head on main.

Files with missing lines Patch % Lines
core/runtime/src/store/from.rs 7.69% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5235       +/-   ##
===========================================
+ Coverage   47.24%   59.77%   +12.52%     
===========================================
  Files         476      589      +113     
  Lines       46892    63418    +16526     
===========================================
+ Hits        22154    37906    +15752     
- Misses      24738    25512      +774     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yush-1018 yush-1018 force-pushed the fix-dataview-clone branch from 6535f5c to 8fec740 Compare March 24, 2026 09:34
@github-actions github-actions bot added the Waiting On Review Waiting on reviews from the maintainers label Mar 24, 2026
@yush-1018
Copy link
Contributor Author

Sorry about that! I've force-pushed with only the relevant DataView fix commit now. Could you re-review?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Builtins PRs and Issues related to builtins/intrinsics C-Runtime Issues and PRs related to Boa's runtime features C-Tests Issues and PRs related to the tests. Waiting On Review Waiting on reviews from the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

structuredClone() / postMessage() reject DataView values

2 participants