chore: update

This commit is contained in:
sobird
2026-04-05 09:12:48 +08:00
parent d3a607e4e5
commit c16fc62877

View File

@@ -528,7 +528,7 @@ function highlightLine(
// hljs throws on unknown language despite ignoreIllegals
return [[defaultStyle(theme), code]]
}
const emitter = result._emitter;
const emitter = result._emitter || {};
if (!hasRootNode(emitter)) {
if (!loggedEmitterShapeError) {
loggedEmitterShapeError = true