1. 08 Oct, 2011 1 commit
  2. 31 Aug, 2011 2 commits
    • rswindell's avatar
      Eliminate problematic js properties in non-debug builds: · a3c7a535
      rswindell authored
      js.gc_counter, js.gc_last_bytes, js.bytes, and js.max_bytes
      Since these properties rely on internal JS context structure offsets, they're
      not always compatible with replaced (upgraded or downgraded) JS library
      (shared object or DLL) and can cause crashes in some cases. They can be
      useful in some debugging cases, so I'm leaving them in the debug build, but
      use with caution.
      a3c7a535
    • rswindell's avatar
      Fix bug introduced in rev 1.44: a js.on_exit() handler could not change the · 576d5d67
      rswindell authored
      value of js.auto_terminate (e.g. the irc.js could not restore the original
      value, thus re-enabling auto-terminate upon exit of the IRC client).
      576d5d67
  3. 12 Aug, 2011 1 commit
  4. 13 Jul, 2011 1 commit
  5. 02 Apr, 2010 3 commits
  6. 13 Mar, 2010 1 commit
    • rswindell's avatar
      Remove Deuce's jsexec object, define js.startup_dir instead, which is now · 49b9ff9f
      rswindell authored
      (potentially) non-blank for external JS modules configured in SCFG->External
      Programs, as well as those executed from jsexec. If the startup_dir is
      specified in SCFG and no path is given for the .js file, it will look in the
      startup_dir first. js.startup_dir will be an empty string for all other cases
      (currently).
      49b9ff9f
  7. 18 Aug, 2009 1 commit
  8. 14 Aug, 2009 2 commits
    • rswindell's avatar
      When executing (not loading) a script from a file, 3 new properties are · 71d44c8f
      rswindell authored
      created:
      js.exec_path - full path and filename of file executed
      js.exec_dir - directory of executed file
      js.exec_file - filename executed (with no path)
      71d44c8f
    • rswindell's avatar
      Added JS load() search path extensibility: · f45e2156
      rswindell authored
      Configurable via ctrl/sbbs.ini file JavaScriptLoadPath key value
      (comma-separate listed of search directories), default value is "load".
      This list is exposed in the JS object model via the js.load_path_list array
      (may be modified by scripts).
      For JSexec, the default load path list may be over-ridden with the '-i' option.
      For relative load paths (e.g. not beginning with '/' or '\'), the path is
      assumed to be a sub-directory of the (configurable) mods or exec directories
      and is searched accordingly.
      So, by default, load("somefile.js") will search in this order:
      mods/load/somefile.js
      exec/load/somefile.js
      mods/somefile.js
      exec/somefile.js
      f45e2156
  9. 06 Feb, 2009 1 commit
  10. 24 Jan, 2009 1 commit
  11. 20 Jan, 2009 2 commits
  12. 09 Dec, 2008 1 commit
  13. 08 Dec, 2008 2 commits
  14. 05 Dec, 2008 1 commit
  15. 11 Jan, 2008 1 commit
  16. 28 Oct, 2007 1 commit
  17. 27 Dec, 2006 2 commits
  18. 15 Jun, 2006 1 commit
  19. 01 Jun, 2006 1 commit
  20. 01 Feb, 2006 1 commit
  21. 13 Dec, 2005 1 commit
  22. 14 Oct, 2005 2 commits
  23. 12 Oct, 2005 1 commit
  24. 12 Aug, 2005 1 commit
  25. 06 Aug, 2005 2 commits
  26. 09 May, 2005 1 commit
  27. 30 Dec, 2004 1 commit
  28. 02 Dec, 2004 2 commits
  29. 10 Nov, 2004 1 commit
  30. 26 Nov, 2003 1 commit