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

refactor: Remove deno_core::Snapshot #602

Merged
merged 9 commits into from
Feb 24, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Feb 24, 2024

This commit removes deno_core::Snapshot.

Embedders need to pass a &'static [u8] for the startup
snapshot now.

It was an unnecessary abstraction that complicated things.

To satisfy test requirements, all snapshots are leaked. It's not
a big deal, because they are really small and this setup better
corresponds with the real world usage (and doesn't require
expensive integration tests that would need to compile a full
fledged binary).

Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

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

LGTM, much simpler.

@bartlomieju bartlomieju merged commit 11f8e26 into denoland:main Feb 24, 2024
16 checks passed
@bartlomieju bartlomieju deleted the runtime_snapshot_static branch February 24, 2024 03:10
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