Skip to content

Commit fcbfecd

Browse files
fix(match): error on frame zero
1 parent 1d61d79 commit fcbfecd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/match/match.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ export class Match {
308308
return 0;
309309
}
310310

311+
if (index === 0) {
312+
return callback(frames[0]);
313+
}
314+
311315
let lowerFrame = frames[index - 1];
312316
let upperFrame = frames[index];
313317

0 commit comments

Comments
 (0)