Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 04e7c894d4584e3d4cce1ad50b73b22885acfff4..4e5f237a3be7fb5add9193fed948e00ea1e931b4 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7333,7 +7333,7 @@ Local<String> WasmCompiledModule::GetWasmWireBytes() { |
i::Handle<i::JSObject>::cast(Utils::OpenHandle(this)); |
i::Handle<i::WasmCompiledModule> compiled_part = |
i::handle(i::WasmCompiledModule::cast(obj->GetInternalField(0))); |
- i::Handle<i::String> wire_bytes = compiled_part->module_bytes(); |
+ i::Handle<i::String> wire_bytes(compiled_part->module_bytes()); |
return Local<String>::Cast(Utils::ToLocal(wire_bytes)); |
} |
@@ -7395,7 +7395,7 @@ MaybeLocal<WasmCompiledModule> WasmCompiledModule::Compile(Isolate* isolate, |
i::wasm::CreateModuleObjectFromBytes( |
i_isolate, start, start + length, &thrower, |
i::wasm::ModuleOrigin::kWasmOrigin, i::Handle<i::Script>::null(), |
- nullptr, nullptr); |
+ i::Vector<const uint8_t>::empty()); |
if (maybe_compiled.is_null()) return MaybeLocal<WasmCompiledModule>(); |
return Local<WasmCompiledModule>::Cast( |
Utils::ToLocal(maybe_compiled.ToHandleChecked())); |