Fix 2 errors in mod_spidermonkey on windows.

1. We need a pool for apr_stat.  Expand api and create a pool when necessary.
2. Don't use -1 value in enum for no reason as they can be signed or unsigned (compiler defined) so there is an int overflow.  This fixes an incorrect assert in the spidermonkey exception handling caused by an unsigned int overflow.

resolve http://jira.freeswitch.org/browse/MODLANG-7. 


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5002 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-04-23 15:33:25 +00:00
parent deb4972610
commit ae1a6184e2
5 changed files with 24 additions and 10 deletions

View File

@@ -552,7 +552,7 @@ typedef void
* JSEXN_NONE marks an unthrowable error.
*/
typedef enum JSExnType {
JSEXN_NONE = -1,
JSEXN_NONE,
JSEXN_ERR,
JSEXN_INTERNALERR,
JSEXN_EVALERR,