From 40aeb0d9949e3a9bfe5613f5543bb254222ca312 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 28 Jan 2021 18:20:28 -0800 Subject: [PATCH] fix: dont try to serialize WasmModuleObjects (#27518) --- shell/renderer/api/electron_api_context_bridge.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/renderer/api/electron_api_context_bridge.cc b/shell/renderer/api/electron_api_context_bridge.cc index 99616cf91b3c..0b9569ef2a01 100644 --- a/shell/renderer/api/electron_api_context_bridge.cc +++ b/shell/renderer/api/electron_api_context_bridge.cc @@ -96,7 +96,8 @@ bool IsPlainObject(const v8::Local& object) { object->IsArrayBuffer() || object->IsArrayBufferView() || object->IsArray() || object->IsDataView() || object->IsSharedArrayBuffer() || object->IsProxy() || - object->IsWasmModuleObject() || object->IsModuleNamespaceObject()); + object->IsWasmModuleObject() || object->IsWasmMemoryObject() || + object->IsModuleNamespaceObject()); } bool IsPlainArray(const v8::Local& arr) {