mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
core: Add test for snapshotting from Rust (#2197)
This commit is contained in:
parent
f694823507
commit
7fc9d7d62a
5 changed files with 78 additions and 35 deletions
|
@ -101,6 +101,7 @@ deno_snapshot deno_snapshot_new(Deno* d_) {
|
|||
|
||||
auto blob = d->snapshot_creator_->CreateBlob(
|
||||
v8::SnapshotCreator::FunctionCodeHandling::kKeep);
|
||||
d->has_snapshotted_ = true;
|
||||
return {reinterpret_cast<uint8_t*>(const_cast<char*>(blob.data)),
|
||||
blob.raw_size};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue