• exec/load/sbbslist_html.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Mar 12 17:13:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/06114c3b7e169afaf9f32798
    Modified Files:
    exec/load/sbbslist_html.js
    Log Message:
    Add some statistics doughnut charts to the bottom of the list

    All the cool kids are doing it these days

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Sep 19 23:53:09 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/97bae7fd8ad749043eb0d3c8
    Modified Files:
    exec/load/sbbslist_html.js
    Log Message:
    Use var, not const, for the OS-prefix string in the BBS list stats loop

    exec/CLAUDE.md is explicit that const is off-limits in Synchronet JS: it
    does not exist in SpiderMonkey 1.8.5, and a top-level const causes redeclaration errors under SM128 as well. This one sat inside the
    for(i in list) loop that builds the version/OS/network histograms, so
    the web server logged

    /var/www/html/sbbslist.ssjs line 356:
    TypeError: redeclaration of const prefix, Request: /sbbslist.ssjs

    and the public BBS list failed to render for that request. Two hits in data/error.log, the most recent on 2026-09-17.

    const buys nothing here in any case, since neither engine block-scopes
    it the way the placement inside the loop suggests.

    Introduced in 06114c3b7e (reggae-27-sake, 2026-03-12). The remaining
    const/let in this file are inside writeln() strings, emitted for the
    browser to run rather than for SpiderMonkey, and are left alone.

    Verified against the live page: HTTP 200, 1,963,616 bytes, the OS
    histogram populated ("Linux":116, "Win32":74, "FreeBSD":3) from the
    code path that was throwing, and no new error.log entries.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

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