// fixhunt regression fixture: biome suspicious/noPrototypeBuiltins, 2.5.15 // the fix labelled safe changes the program's output on this program // before the fix: stdout "TypeError Cannot read properties of undefined (reading 'hasOwnProperty')", exit 0 // after the fix: stdout "TypeError Cannot convert undefined or null to object", exit 0 // finding 2026-10-17T21-09-20-346Z-6n46-biome-suspicious_noPrototypeBuiltins/r1-p002; rule fired 1 time(s) before the fix if (typeof foo === 'undefined') { try { console.log(foo.hasOwnProperty('x')); } catch (e) { console.log(e.name, e.message); } } var foo = { x: 1 };