test: keep LED owner mutant type-correct for runtime proof (#791)

Issue: #791
User-Visible: no
This commit is contained in:
Matysh
2026-10-04 17:10:40 +03:00
parent a5e06b0527
commit 9deb1dcfd6
+6 -2
View File
@@ -14512,8 +14512,12 @@ const MUTANT_DEFINITIONS = [
+ 'without losing a valid neighbouring strip; the executable frame boundary needs no browser',
patches: [{
file: 'src/led-strip-runtime.ts',
find: " if (!device || device.space !== input.space.id) continue;",
replace: " if (device && device.space !== input.space.id) continue;",
find: ' const device = byId.get(strip.marker as string);\n'
+ ' if (!device || device.space !== input.space.id) continue;',
// Keep the mutant type-correct: the non-null assertion erases at runtime,
// so the Node oracle must catch the missing-owner crash, not a tsc error.
replace: ' const device = byId.get(strip.marker as string)!;\n'
+ ' if (device && device.space !== input.space.id) continue;',
}],
},
{