--- trunk/js/jsfile.cpp 2009/09/22 20:24:54 459 +++ trunk/js/jsfile.cpp 2009/09/26 23:15:22 460 @@ -57,6 +57,17 @@ # define CURRENT_DIR "c:\\" # define POPEN _popen # define PCLOSE _pclose +#elif defined(SYMBIAN) +# include +# include +# include +# include +# include +# define FILESEPARATOR '\\' +# define FILESEPARATOR2 '/' +# define CURRENT_DIR "c:\\" +# define POPEN popen +# define PCLOSE pclose #elif defined(XP_UNIX) || defined(XP_BEOS) # include # include @@ -259,7 +270,7 @@ static JSBool js_isAbsolute(const char *name) { -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_WIN) || defined(XP_OS2) || defined(SYMBIAN) return *name && name[1] == ':'; #else return (name[0] @@ -2181,7 +2192,7 @@ JSString *str; JSFile *file; - if (!(cx->fp->flags & JSFRAME_CONSTRUCTING)) { + if (!JS_IsConstructing(cx)) { /* Replace obj with a new File object. */ obj = JS_NewObject(cx, &js_FileClass, NULL, NULL); if (!obj)