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

feat(graalvm): add structuredClone support #1280

Closed
wants to merge 1 commit into from

Conversation

sgammon
Copy link
Member

@sgammon sgammon commented Mar 10, 2025

Ready for review Powered by Pull Request Badge

Summary

Adds a very simple structured clone via guest-side JSON.parse(JSON.stringify(x)).

Changelog

feat(graalvm): add `structuredClone` support
test(graalvm): add `structuredClone` tests

feat(graalvm): add `structuredClone` support
test(graalvm): add `structuredClone` tests

Closes #1267

Relates-to: #1267
Signed-off-by: Sam Gammon <sam@elide.dev>
@sgammon sgammon added lang:javascript Issues relating to JavaScript api:node Node API and stdlib tc:winter WinterTC Spec labels Mar 10, 2025
@sgammon sgammon added this to the Release R7: Beta 1 milestone Mar 10, 2025
@sgammon sgammon self-assigned this Mar 10, 2025
@sgammon sgammon linked an issue Mar 10, 2025 that may be closed by this pull request
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

Attention: Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.

Project coverage is 48.42%. Comparing base (fcf5cdf) to head (992250c).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...elide/runtime/javascript/StructuredCloneBuiltin.kt 64.28% 3 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1280      +/-   ##
==========================================
+ Coverage   48.40%   48.42%   +0.01%     
==========================================
  Files         500      501       +1     
  Lines       18365    18379      +14     
  Branches     3265     3269       +4     
==========================================
+ Hits         8890     8900      +10     
- Misses       8462     8464       +2     
- Partials     1013     1015       +2     
Flag Coverage Δ
jvm 48.42% <64.28%> (+0.01%) ⬆️
lib 48.42% <64.28%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...elide/runtime/javascript/StructuredCloneBuiltin.kt 64.28% <64.28%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcf5cdf...992250c. Read the comment docs.

🚀 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.

@sgammon sgammon closed this Mar 10, 2025
@sgammon sgammon mentioned this pull request Mar 11, 2025
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:node Node API and stdlib lang:javascript Issues relating to JavaScript tc:winter WinterTC Spec
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

JS API: structuredClone support
1 participant