| Index: src/snapshot/code-serializer.cc
|
| diff --git a/src/snapshot/code-serializer.cc b/src/snapshot/code-serializer.cc
|
| index 197c569c84610081fd532d50b7120476f981237f..f3a1051fba950cc186deee21d634f08bc03376da 100644
|
| --- a/src/snapshot/code-serializer.cc
|
| +++ b/src/snapshot/code-serializer.cc
|
| @@ -249,9 +249,13 @@ std::unique_ptr<ScriptData> WasmCompiledModuleSerializer::SerializeWasmModule(
|
|
|
| MaybeHandle<FixedArray> WasmCompiledModuleSerializer::DeserializeWasmModule(
|
| Isolate* isolate, ScriptData* data, Vector<const byte> wire_bytes) {
|
| + MaybeHandle<FixedArray> nothing;
|
| + if (!wasm::IsWasmCodegenAllowed(isolate, isolate->native_context())) {
|
| + return nothing;
|
| + }
|
| SerializedCodeData::SanityCheckResult sanity_check_result =
|
| SerializedCodeData::CHECK_SUCCESS;
|
| - MaybeHandle<FixedArray> nothing;
|
| +
|
| const SerializedCodeData scd = SerializedCodeData::FromCachedData(
|
| isolate, data, 0, &sanity_check_result);
|
|
|
|
|