fix: do not run microtasks in V8Serializer in browser process (#46682)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: clavin <clavin@electronjs.org>
This commit is contained in:
trop[bot] 2025-04-19 10:50:40 -05:00 committed by GitHub
parent 2960f93ea5
commit e8188ef271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ class V8Serializer : public v8::ValueSerializer::Delegate {
bool Serialize(v8::Local<v8::Value> value, blink::CloneableMessage* out) {
gin_helper::MicrotasksScope microtasks_scope{
isolate_->GetCurrentContext(), false,
isolate_->GetCurrentContext(), true,
v8::MicrotasksScope::kDoNotRunMicrotasks};
WriteBlinkEnvelope(19);