• src/sbbs3/js_internal.cpp

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tuesday, September 29, 2026 15:57:27
    https://gitlab.synchro.net/main/sbbs/-/commit/579d669532340e1429559fb6
    Modified Files:
    src/sbbs3/js_internal.cpp
    Log Message:
    js: report limit and background context in "Infinite loop" errors

    The error now includes the limit that was exceeded and whether the
    operation callback belongs to a load(true, ...) background thread, so a
    report identifies which counter fired. A long-running jsexec script that
    sets js.branch_limit = 0 in its own context can still hit this error from another callback, and the old message gave no way to tell them apart.

    Also print the uint32_t counter with %u rather than %lu.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net