• src/sbbs3/exec.cpp sbbs.h src/sbbs3/scfg/scfgxtrn.c src/sbbs3/xtrn.cpp

    From Rob Swindell to Git commit to sbbs/master on Sunday, August 30, 2020 13:32:39
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1decdc695b3cab1b5ee98c86
    Modified Files:
    src/sbbs3/exec.cpp sbbs.h src/sbbs3/scfg/scfgxtrn.c src/sbbs3/xtrn.cpp xtrn_sec.cpp
    Log Message:
    External program "use shell" option can be used to use a new JS context

    Rather than introduce yet-another-external-program/config flag to enable
    the "new JS run-time/context" per invocation of any particular JS command,
    I'm using the XTRN/EX_SH ("Use Shell") option as it had no function for JavaScript command-lines and the concept is similar.

    So if you want to invoke a JS external program/timed-event in its own "sandbox", enable the "Use Shell / New Context" option for that
    program/command in SCFG. There may be performance penalties when running
    JS mods in this way, but you get the benefit of isolating one JS module
    from all others, if/when necessary.