Skip to content

Commit c16fc62

Browse files
committed
chore: update
1 parent d3a607e commit c16fc62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/color-diff-napi/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ function highlightLine(
528528
// hljs throws on unknown language despite ignoreIllegals
529529
return [[defaultStyle(theme), code]]
530530
}
531-
const emitter = result._emitter;
531+
const emitter = result._emitter || {};
532532
if (!hasRootNode(emitter)) {
533533
if (!loggedEmitterShapeError) {
534534
loggedEmitterShapeError = true

0 commit comments

Comments
 (0)