Skip to content

Commit

Permalink
fix: handle getPossibleBreakpoints response from hermes (#1841)
Browse files Browse the repository at this point in the history
For #1837
  • Loading branch information
connor4312 authored Oct 9, 2023
1 parent eb545fa commit 2bf8458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapter/breakpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ export class BreakpointManager {
end: { scriptId, ...lsrc.offsetSourceToScript(base1To0(end)) },
})
.then(r => {
if (!r) {
// locations can be undefined in Hermes, #1837
if (!r?.locations) {
return;
}

Expand Down

0 comments on commit 2bf8458

Please sign in to comment.