Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 33f136c7fcc43da489c678502dad7e72e8ef2fbc..a23cec5f32fe94a6c4bfddc7898d4d862d9d8cc0 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -1624,10 +1624,8 @@ MaybeHandle<JSObject> ValueDeserializer::ReadWasmModule() { |
MaybeHandle<JSObject> result; |
{ |
wasm::ErrorThrower thrower(isolate_, "ValueDeserializer::ReadWasmModule"); |
- result = wasm::CreateModuleObjectFromBytes( |
- isolate_, wire_bytes.begin(), wire_bytes.end(), &thrower, |
- wasm::ModuleOrigin::kWasmOrigin, Handle<Script>::null(), |
- Vector<const byte>::empty()); |
+ result = wasm::SyncCompile(isolate_, &thrower, |
+ wasm::ModuleWireBytes(wire_bytes)); |
} |
RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSObject); |
return result; |