Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 978bed72d3091bc8b81b3807ba508b175ae6e431..f3cda57652c3e5c8d68d36ae05a1da0a5abdaf52 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1357,8 +1357,8 @@ int InterpretedFrame::position() const { |
int InterpretedFrame::LookupExceptionHandlerInTable( |
int* context_register, HandlerTable::CatchPrediction* prediction) { |
BytecodeArray* bytecode = function()->shared()->bytecode_array(); |
- return bytecode->LookupRangeInHandlerTable(GetBytecodeOffset(), |
- context_register, prediction); |
+ HandlerTable* table = HandlerTable::cast(bytecode->handler_table()); |
+ return table->LookupRange(GetBytecodeOffset(), context_register, prediction); |
} |
int InterpretedFrame::GetBytecodeOffset() const { |