Index: src/wasm/wasm-debug.cc |
diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc |
index 4f62f9581e0ff4ec0797dec1e30bead7b644da3d..0bcd4407da45b8960af2dcd9cf3b1c518f8e4fef 100644 |
--- a/src/wasm/wasm-debug.cc |
+++ b/src/wasm/wasm-debug.cc |
@@ -158,7 +158,7 @@ bool WasmDebugInfo::IsDebugInfo(Object *object) { |
FixedArray *arr = FixedArray::cast(object); |
Isolate *isolate = arr->GetIsolate(); |
return arr->length() == kWasmDebugInfoNumEntries && |
- IsWasmObject(arr->get(kWasmDebugInfoWasmObj)) && |
+ IsWasmModule(arr->get(kWasmDebugInfoWasmObj)) && |
arr->get(kWasmDebugInfoWasmBytesHash)->IsNumber() && |
(arr->get(kWasmDebugInfoFunctionByteOffsets)->IsUndefined(isolate) || |
arr->get(kWasmDebugInfoFunctionByteOffsets)->IsByteArray()) && |