Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 1fd44928b751bdc0a2452bf450b6539762bdff7a..6be27f160e3c916bf5eb6ba6d858e67b3522e87e 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1348,7 +1348,7 @@ uint32_t WasmFrame::function_index() { |
FixedArray* deopt_data = LookupCode()->deoptimization_data(); |
DCHECK(deopt_data->length() == 2); |
Object* func_index_obj = deopt_data->get(1); |
- if (func_index_obj->IsUndefined()) return static_cast<uint32_t>(-1); |
+ if (func_index_obj->IsUndefined(isolate())) return static_cast<uint32_t>(-1); |
if (func_index_obj->IsSmi()) return Smi::cast(func_index_obj)->value(); |
DCHECK(func_index_obj->IsHeapNumber()); |
uint32_t val = static_cast<uint32_t>(-1); |