Commit dd27b73a authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

[shared-struct] Fix isolate creation for testing snapshot

Bug: v8:12547
Change-Id: I32898a4382397663967d7e784e16d7930f3600a2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3859097
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Reviewed-by: 's avatarJakob Linke <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82760}
parent e3af299c
......@@ -346,9 +346,6 @@ void Snapshot::SerializeDeserializeAndVerifyForTesting(
new_isolate->Enter();
new_isolate->set_snapshot_blob(&serialized_data);
new_isolate->set_array_buffer_allocator(array_buffer_allocator.get());
if (Isolate* shared_isolate = isolate->shared_isolate()) {
new_isolate->set_shared_isolate(shared_isolate);
}
CHECK(Snapshot::Initialize(new_isolate));
HandleScope scope(new_isolate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment