Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 81301fd55395b4e8d2f356ec9413da6b6425953b..c33dc8ed729af65f5869895b37091a88a1af744d 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -783,7 +783,7 @@ Maybe<bool> ValueSerializer::WriteWasmModule(Handle<JSObject> object) { |
WriteTag(SerializationTag::kWasmModule); |
WriteRawBytes(&encoding_tag, sizeof(encoding_tag)); |
- Handle<String> wire_bytes = compiled_part->module_bytes(); |
+ Handle<String> wire_bytes(compiled_part->module_bytes(), isolate_); |
int wire_bytes_length = wire_bytes->length(); |
WriteVarint<uint32_t>(wire_bytes_length); |
uint8_t* destination = ReserveRawBytes(wire_bytes_length); |
@@ -1554,8 +1554,8 @@ MaybeHandle<JSObject> ValueDeserializer::ReadWasmModule() { |
wasm::ErrorThrower thrower(isolate_, "ValueDeserializer::ReadWasmModule"); |
return wasm::CreateModuleObjectFromBytes( |
isolate_, wire_bytes.begin(), wire_bytes.end(), &thrower, |
- wasm::ModuleOrigin::kWasmOrigin, Handle<Script>::null(), nullptr, |
- nullptr); |
+ wasm::ModuleOrigin::kWasmOrigin, Handle<Script>::null(), |
+ Vector<const byte>::empty()); |
} |
MaybeHandle<JSObject> ValueDeserializer::ReadHostObject() { |