• webv4/lib/locale/en_us.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Jul 6 20:44:06 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9c81f6d9eb8853a4a99ba3bf
    Modified Files:
    webv4/lib/locale/en_us.js
    Log Message:
    webv4: fix mod_path scoping in the EN_US() locale loader

    mod_path was declared const inside the if (typeof name == 'string') block
    but referenced later, outside that block, when deciding whether to overlay
    a named locale .ini. Declare it as a function-scoped var instead, so a
    call without a locale-override name sees a plain undefined and skips the overlay rather than referencing an out-of-scope identifier (a path that
    could throw under SpiderMonkey 1.8.5's quirky block-const scoping).
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)