fix: dont try to serialize WasmModuleObjects (#27518)

This commit is contained in:
Shelley Vohr 2021-01-28 18:20:28 -08:00 committed by GitHub
parent 4f2490f8b8
commit 40aeb0d994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,8 @@ bool IsPlainObject(const v8::Local<v8::Value>& 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<v8::Value>& arr) {