- 25 Apr, 2015 2 commits
-
-
deuce authored
-
deuce authored
scripts global scope (as opposed to js.global which is the instance global scope), and having exit() define exit_code in js.scope instead of js.global. This also sets exit_code in js.scope to null when preparing to execute a new script. If a new script starts in the same scope as an old one, the old exit_code value will be destroyed. This should only impact scripts where js.global != js.scope (bbs.exec()ed, and mailsrvr)
-
- 08 Oct, 2013 1 commit
-
-
deuce authored
-
- 03 Oct, 2013 1 commit
-
-
rswindell authored
that MSVC RTL functions will not terminate the program (e.g. jsexec, sbbsctrl) if an invalid parameter is detected (e.g. unsupported format specifier in call to strftime()).
-
- 13 Sep, 2013 1 commit
-
-
rswindell authored
counter/limits as branch counter/limits.
-
- 16 Mar, 2013 1 commit
-
-
rswindell authored
slightly improved JSDOC descriptions. Updated JSDOC description of the 'js' object to be more general.
-
- 08 Feb, 2013 1 commit
-
-
deuce authored
-
- 15 Mar, 2012 4 commits
-
-
deuce authored
-
deuce authored
back into the container because str_list_t's tend to realloc()
-
deuce authored
-
deuce authored
global object exits. This fixes a problem where the terminal server reuses the same global object for all JS scripts, and they uses nested exec()s. When the innermost script would exit, the on_exit evals would occure in IT'S scope rather than in the scope it was defined in, resulting in incorrect behaviour.
-
- 12 Nov, 2011 1 commit
-
-
deuce authored
-
- 02 Nov, 2011 1 commit
-
-
deuce authored
is to periodically call JS_YieldRequest from an operation callback."
-
- 29 Oct, 2011 1 commit
-
-
deuce authored
resolve callbacks.
-
- 28 Oct, 2011 1 commit
-
-
rswindell authored
has its own functional "too much recursion" detection. Replaced "branch callback" stuff with "operational callback". JavaScriptBranchLimit has been replaced with JavaScriptTimeLimit (default value: 24 hours)
-
- 26 Oct, 2011 1 commit
-
-
deuce authored
functions when an excpetion is pending. Some work still needs to be done on js_msgbase.c, js_user.c, and mailsrvr.c
-
- 19 Oct, 2011 1 commit
-
-
deuce authored
-
- 16 Oct, 2011 2 commits
- 11 Oct, 2011 1 commit
-
-
deuce authored
-
- 10 Oct, 2011 1 commit
-
-
deuce authored
Only js_ValueToStringBytes() still leaks.
-
- 09 Oct, 2011 6 commits
- 08 Oct, 2011 2 commits
- 31 Aug, 2011 2 commits
-
-
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.
-
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).
-
- 12 Aug, 2011 1 commit
-
-
sbbs authored
but run with a different version of libjs.so.
-
- 13 Jul, 2011 1 commit
-
-
rswindell authored
-
- 02 Apr, 2010 3 commits
- 13 Mar, 2010 1 commit
-
-
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).
-
- 18 Aug, 2009 1 commit
-
-
rswindell authored
than dynamically allocated string list. Also, allow a blank JavaScriptLoadPath to be specified in the sysop's sbbs.ini if they wish. This resolves the memory leak issue with this startup parameter.
-
- 14 Aug, 2009 2 commits
-
-
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)
-
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
-