Skip to content

Fix endless loop on src/helpers/merge.js:23#121

Merged
jmthomas merged 1 commit intoace-diff:masterfrom
bkmetzler:fix_endless_loop
Jul 9, 2025
Merged

Fix endless loop on src/helpers/merge.js:23#121
jmthomas merged 1 commit intoace-diff:masterfrom
bkmetzler:fix_endless_loop

Conversation

@bkmetzler
Copy link
Contributor

When attempting to use AceDiff, merge keeps throwing the following exception in the web browser console:

Screenshot from 2025-07-09 15-12-27

This shows the infinite loop. By adding a basic comparison, it removes this loop.

Details:
Operating System: Ubuntu Linux 24.04.2 LTS
Web Browser: Google Chrome
Web Browser Version 138.0.7204.100 (Official Build) (64-bit)

When attempting to use AceDiff, merge keeps throwing the following
exception in the web browser console:

merge.js:18 Uncaught RangeError: Maximum call stack size exceeded
    at eval (merge.js:18:1)
    at Array.forEach (<anonymous>)
    at merge (merge.js:18:1)
    at eval (merge.js:23:1)
    at Array.forEach (<anonymous>)
    at merge (merge.js:18:1)
    at eval (merge.js:23:1)
    at Array.forEach (<anonymous>)
    at merge (merge.js:18:1)
    at eval (merge.js:23:1)

This shows the infinite loop.  By adding a basic comparison, it removes
this loop.
@jmthomas jmthomas merged commit 37b2deb into ace-diff:master Jul 9, 2025
1 check passed
@bkmetzler bkmetzler deleted the fix_endless_loop branch July 9, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants