Graceful fallback for unsupported body range type

This commit is contained in:
Fedor Indutny 2024-10-17 14:19:31 -07:00 committed by GitHub
parent bc9ced22a0
commit 80b63cceb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -413,7 +413,7 @@ function rangeToPartialNode(
if (range.style === BodyRange.Style.NONE) {
return {};
}
throw missingCaseError(range.style);
return {};
}
if (BodyRange.isLink(range)) {
return {