https://gitlab.synchro.net/main/sbbs/-/commit/8d1156ef41bc0318d90271b8
Modified Files:
exec/json-service.js xtrn/bublbogl/game.js xtrn/dicewarz2/diceobj.js game.js service.js
Log Message:
Uproot the last of the `for each` blight from the xtrn fields
Well now. Went out to check the back forty and found the dicewarz2 and
bublbogl plots still choked with that invasive `for each` weed Mozilla
planted years ago. SpiderMonkey 128 don't tolerate that nonsense no more
than I tolerate thistle in my beet rows.
Worse yet, the json-service.js error handler had a busted reference Ä `module.name` where it should've been `this.name` Ä so when dicewarz2's service.js failed to compile, the catch block itself threw a
ReferenceError, and the whole service went down like a frost-bit seedling.
Over and over, restart after restart, and not a single line in the log
to show for it. Like a groundhog eating your crop in the dark.
Fixed the catch block to use the right variable and actually log the
error. A man ought to know what's killing his plants.
Files tended:
- xtrn/dicewarz2/diceobj.js: 2 `for each` `for...of Object.values()`
- xtrn/dicewarz2/game.js: 1 `for each` `for...of Object.values()`
- xtrn/dicewarz2/service.js: 1 `for each` `for...of Object.values()`
- xtrn/bublbogl/game.js: 1 `for each` `for...of Object.values()`
- exec/json-service.js: `module.name` `this.name`, added error logging
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net