Subj : Re: xtrn_sec.js - .js filename vs internal code
To   : Nightfox
From : Nelgin
Date : Tue May 19 2020 02:31 pm

Nightfox wrote:
N> Hi DM,
N>
N> Does xtrn_sec.js expect .js doors to have a filename that is the same as the itnernal code?  One of the doors I have set up on my BBS is Bubble Boggle, which is a .js door.  The script filename is boggle.js, and the internal code I have set up for it is BUBLBOGL.  It used to run, but with the latest xtrn_sec.js, I'm getting the following error:
N>
N> 5/19  08:20:05a  Node 1 <Nightfox> !JavaScript  D:\BBS\sbbs\exec\xtrn_sec.js line 90: uncaught exception: Unknown module: boggle
N>
N> This is line 90 in xtrn_sec.js:
N> bbs.exec_xtrn(prog.code);
N>
N> Nightfox

Then again...

Modified Files:
       sbbs.h xtrn.cpp
Log Message:
Move term_env from static (BSS) variable to sbbs_t member. Static member
funct
ion variables are shared among threads, so this was just a race-condition
wait
ing to happen. <grimmace>


Could have broken it. I'll update myself. If you hear nothing from me, then
it still works, if it's broken, I'll report back.

---
� Synchronet � End Of The Line BBS - endofthelinebbs.com