podcast-test: no this-alias in the speech stub (the gate lints tests too)

This commit is contained in:
Martin Dvořák 2026-10-16 21:47:12 +00:00
commit 3fb491c54d

View file

@ -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);
},