Skip to content

V8: add FromValue, error traits, roundtrip tests#2971

Merged
Centril merged 3 commits into
masterfrom
centril/from-value-2
Jul 22, 2025
Merged

V8: add FromValue, error traits, roundtrip tests#2971
Centril merged 3 commits into
masterfrom
centril/from-value-2

Conversation

@Centril
Copy link
Copy Markdown
Contributor

@Centril Centril commented Jul 22, 2025

Description of Changes

The primary goal here is to add the trait FromValue and its implementation.
These are then tested in combination with ToValue.
Some error handling functionality is also added.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

Proptests and edge case tests are added, testing that a value x: T is the same as from_value(to_value(x)).

@Centril Centril requested a review from gefjon July 22, 2025 13:44
Copy link
Copy Markdown
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

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

One question, then I think we'll be good to merge this.

Comment thread crates/core/src/host/v8/from_value.rs
@Centril Centril enabled auto-merge July 22, 2025 17:20
@Centril Centril added this pull request to the merge queue Jul 22, 2025
Merged via the queue into master with commit a655225 Jul 22, 2025
25 checks passed
@Centril Centril deleted the centril/from-value-2 branch July 22, 2025 20:49
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.

2 participants