• exec/load/xjs.js

    From rswindell@VERT to CVS commit on Thursday, January 10, 2019 03:05:00
    exec/load xjs.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv28597

    Modified Files:
    xjs.js
    Log Message:
    Log errors when failing to open/create files.



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to sbbs/master on Thursday, October 08, 2020 04:36:27
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1f3b9383fec7b13feedc5b10
    Modified Files:
    exec/load/xjs.js
    Log Message:
    Don't shit pants if 'cwd' isn't a thing or a string.
    Added xjs_eval(filename, str)
    - notionally for evaluating XJS without immediate write
    - if str, returns the evaluated script as a string
    - if !str, returns the filename that the script was dumped to
    - was a fun idea, but doesn't play well with other scripts
    - best used with simple and self-contained xjs

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