79197833

Date: 2024-11-17 18:11:28
Score: 1
Natty:
Report link

If you used a debugger (always do it) or simply look thoroughly, you would see a trivial infinite loop bug and a simple fix:

while (this.undos.length > 0)
    this.operations.push(this.undos.pop());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergey A Kryukov