AI Code Revision Comparator
Pre-loaded with a classic vibe-coding trap: the original function and an AI refactor that looks cleaner and shorter — but silently dropped the missing-price guard (NaN totals incoming) and swapped || for ??, changing how a quantity of 0 is billed. The diff makes both regressions impossible to miss.
runs 100% in your browser — configs & code stay private
- 1Paste both versionsOriginal on the left, modified on the right — both panels stay fully editable.
- 2Read the highlightsGreen lines were added, red lines removed, amber lines changed — with the exact characters emphasized.
- 3Go semantic for JSONComparing JSON? Flip on Semantic mode to sort keys first, so reordering stops counting as a difference.
lines 0 / 0deviations 0+0−0~0