Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index 36ffed223da101b0ba8cd44bc8b63c1f837f69ea..60f33f9e4c6b7c4220addb4e02b98ce11e27b10d 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -910,7 +910,7 @@ uint32_t WasmJs::GetWasmMemoryMaximumSize(Isolate* isolate, |
DCHECK(IsWasmMemoryObject(isolate, value)); |
Object* max_mem = |
JSObject::cast(*value)->GetInternalField(kWasmMemoryMaximum); |
- if (max_mem->IsUndefined(isolate)) return wasm::WasmModule::kV8MaxPages; |
+ if (max_mem->IsUndefined(isolate)) return 0; |
uint32_t max_pages = Smi::cast(max_mem)->value(); |
return max_pages; |
} |