Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6817735000c8ea8733ca5752eee10998d3b8f731..2a64877f91a3753190f67e19960cbd9c887e5e84 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7703,10 +7703,10 @@ MaybeLocal<Proxy> Proxy::New(Local<Context> context, Local<Object> local_target, |
} |
Local<String> WasmCompiledModule::GetWasmWireBytes() { |
- i::Handle<i::JSObject> obj = |
- i::Handle<i::JSObject>::cast(Utils::OpenHandle(this)); |
+ i::Handle<i::WasmModuleObject> obj = |
+ i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this)); |
i::Handle<i::WasmCompiledModule> compiled_part = |
- i::handle(i::WasmCompiledModule::cast(obj->GetEmbedderField(0))); |
+ i::handle(i::WasmCompiledModule::cast(obj->compiled_module())); |
i::Handle<i::String> wire_bytes(compiled_part->module_bytes()); |
return Local<String>::Cast(Utils::ToLocal(wire_bytes)); |
} |
@@ -7742,10 +7742,10 @@ MaybeLocal<WasmCompiledModule> WasmCompiledModule::FromTransferrableModule( |
} |
WasmCompiledModule::SerializedModule WasmCompiledModule::Serialize() { |
- i::Handle<i::JSObject> obj = |
- i::Handle<i::JSObject>::cast(Utils::OpenHandle(this)); |
+ i::Handle<i::WasmModuleObject> obj = |
+ i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this)); |
i::Handle<i::WasmCompiledModule> compiled_part = |
- i::handle(i::WasmCompiledModule::cast(obj->GetEmbedderField(0))); |
+ i::handle(i::WasmCompiledModule::cast(obj->compiled_module())); |
std::unique_ptr<i::ScriptData> script_data = |
i::WasmCompiledModuleSerializer::SerializeWasmModule(obj->GetIsolate(), |