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: allow v8::Data as a generic for get_*_from_snapshot_once #1393

Merged

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Feb 9, 2024

v8::Data is TryFrom<v8::Data, but the error is Infallible so these methods didn't work for the generic type v8::Data.

We can add a private trait that will allow us to work with v8::Data in these APIs.

@mmastrac mmastrac force-pushed the get_context_data_from_snapshot_once branch from 6b1a4d0 to 006e524 Compare February 9, 2024 20:11
@mmastrac mmastrac force-pushed the get_context_data_from_snapshot_once branch from 006e524 to 41c2470 Compare February 9, 2024 20:12
@mmastrac mmastrac enabled auto-merge (squash) February 9, 2024 20:15
@mmastrac mmastrac merged commit a8606e3 into denoland:main Feb 9, 2024
8 checks passed
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.

None yet

2 participants