diff --git a/src/api/embed_helpers.cc b/src/api/embed_helpers.cc index 983d88a8dac8a9..3b01c2c1fa8fdb 100644 --- a/src/api/embed_helpers.cc +++ b/src/api/embed_helpers.cc @@ -166,10 +166,9 @@ CommonEnvironmentSetup::~CommonEnvironmentSetup() { } bool platform_finished = false; - impl_->platform->AddIsolateFinishedCallback( - isolate, - [](void* data) { * static_cast(data) = true; }, - &platform_finished); + impl_->platform->AddIsolateFinishedCallback(isolate, [](void* data) { + *static_cast(data) = true; + }, &platform_finished); impl_->platform->UnregisterIsolate(isolate); isolate->Dispose();