// fixhunt regression fixture: biome complexity/noUselessUndefinedInitialization, 2.5.15 // the fix labelled safe changes the program's output on this program // before the fix: stdout "Iteration 0 a = undefined Iteration 1 a = undefined", exit 0 // after the fix: stdout "Iteration 0 a = undefined Iteration 1 a = 0", exit 0 // finding 2026-10-17T20-10-15-247Z-vb8k-biome-complexity_noUselessUndefinedInitialization/r1-p005; rule fired 1 time(s) before the fix function scopeTest() { for (let i = 0; i < 2; i++) { var a = undefined; // Rule triggers twice console.log('Iteration', i, 'a =', a); a = i * 10; } } scopeTest();