1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-25 16:02:39 +01:00

Closes issue #698.

This commit is contained in:
Kris Maglione
2011-10-23 23:16:19 -04:00
parent 2b3a8a1e53
commit 854eda4690
3 changed files with 28 additions and 10 deletions

View File

@@ -79,6 +79,13 @@ inline PRBool EnsureStringLength(T& aStr, PRUint32 aLen)
#include "jsdbgapi.h"
#include "jsfriendapi.h"
#if GECKO_MAJOR < 10
static inline JSVersion
JS_GetVersion(JSContext *cx) {
return cx->findVersion();
}
#endif
#include "mozilla/FunctionTimer.h"
#include "mozilla/scache/StartupCache.h"
#include "mozilla/scache/StartupCacheUtils.h"
@@ -519,7 +526,7 @@ dactylUtils::LoadSubScript (const PRUnichar * aURL
bool writeScript = false;
JSScriptType *scriptObj = nsnull;
JSVersion version = cx->findVersion();
JSVersion version = JS_GetVersion(cx);
nsCAutoString cachePath;
cachePath.Append("jssubloader/");