Skip to content

Commit 47c759b

Browse files
committed
fixup! fixup! src: migrate from deprecated SnapshotCreator constructor
1 parent cf1ca46 commit 47c759b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/embed_helpers.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ CommonEnvironmentSetup::~CommonEnvironmentSetup() {
234234
impl_->platform->AddIsolateFinishedCallback(isolate, [](void* data) {
235235
*static_cast<bool*>(data) = true;
236236
}, &platform_finished);
237-
if (impl_->snapshot_creator.has_value())
237+
if (impl_->snapshot_creator.has_value()) {
238238
impl_->snapshot_creator.reset();
239-
else
240-
isolate->Dispose();
239+
}
240+
isolate->Dispose();
241241
impl_->platform->UnregisterIsolate(isolate);
242242

243243
// Wait until the platform has cleaned up all relevant resources.

0 commit comments

Comments
 (0)