diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js index d2922a6d45..6929097262 100644 --- a/ext/web/08_text_encoding.js +++ b/ext/web/08_text_encoding.js @@ -292,6 +292,9 @@ transform: (chunk, controller) => { try { chunk = webidl.converters.DOMString(chunk); + if (chunk === "") { + return PromiseResolve(); + } if (this.#pendingHighSurrogate !== null) { chunk = this.#pendingHighSurrogate + chunk; }