Index: src/wasm/wasm-debug.cc |
diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc |
index 4f62f9581e0ff4ec0797dec1e30bead7b644da3d..66e0d42c4ac15e08b8c81162e24b067136327cb2 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)) && |
+ IsWasmInstance(arr->get(kWasmDebugInfoWasmObj)) && |
arr->get(kWasmDebugInfoWasmBytesHash)->IsNumber() && |
(arr->get(kWasmDebugInfoFunctionByteOffsets)->IsUndefined(isolate) || |
arr->get(kWasmDebugInfoFunctionByteOffsets)->IsByteArray()) && |