We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15a13e commit f885c81Copy full SHA for f885c81
src/interp/interp.cc
@@ -2615,7 +2615,8 @@ RunResult Thread::DoThrow(Exception::Ptr exn) {
2615
auto iter = handlers.rbegin();
2616
while (iter != handlers.rend()) {
2617
const HandlerDesc& handler = *iter;
2618
- if (pc >= handler.try_start_offset && pc < handler.try_end_offset) {
+ // pc points to the *next* instruction by the time we're in DoThrow.
2619
+ if (pc > handler.try_start_offset && pc <= handler.try_end_offset) {
2620
// For a try-delegate, skip part of the traversal by directly going
2621
// up to an outer handler specified by the delegate depth.
2622
if (handler.kind == HandlerKind::Delegate) {
0 commit comments