From 2bf84580011121e751e98bf648e28f50edafb3b5 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Mon, 9 Oct 2023 09:23:55 -0700 Subject: [PATCH] fix: handle getPossibleBreakpoints response from hermes (#1841) For #1837 --- src/adapter/breakpoints.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapter/breakpoints.ts b/src/adapter/breakpoints.ts index 089617df5..804a7d27f 100644 --- a/src/adapter/breakpoints.ts +++ b/src/adapter/breakpoints.ts @@ -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; }