From 3fb491c54d420ca0b164b683967fd083ee2dd65f Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 16 Oct 2026 21:47:12 +0000 Subject: [PATCH] podcast-test: no this-alias in the speech stub (the gate lints tests too) --- tests/podcast-test.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/podcast-test.mjs b/tests/podcast-test.mjs index b18a004..8b16a17 100644 --- a/tests/podcast-test.mjs +++ b/tests/podcast-test.mjs @@ -604,11 +604,10 @@ try { paused: false, speak(utterance) { window.__utterances.push(utterance); - this._speaking = true; - const mine = this; + window.speechSynthesis._speaking = true; queueMicrotask(() => utterance.onstart && utterance.onstart({ name: "start", charIndex: 0 })); setTimeout(() => { - mine._speaking = false; + window.speechSynthesis._speaking = false; if (utterance.onend) utterance.onend(); }, SENTENCE_MS); },