summaryrefslogtreecommitdiff
path: root/libproxy/modules
diff options
context:
space:
mode:
authordominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2011-03-22 22:54:22 +0000
committerdominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2011-03-22 22:54:22 +0000
commitb59bb8cd760b3ebda7fd004e07621b90b7efb401 (patch)
tree136a8cd6a6aa1f6917ce4e2d403ee32270b07496 /libproxy/modules
parent91b431e9f1f75210e2bff34f796eb9888efe8be5 (diff)
downloadlibproxy-b59bb8cd760b3ebda7fd004e07621b90b7efb401.tar.gz
pacrunner_mozjs: ^Ct's not pretend we support xulrunner < 2.0b12... who wants new libproxy wants new xul too
git-svn-id: http://libproxy.googlecode.com/svn/trunk@791 c587cffe-e639-0410-9787-d7902ae8ed56
Diffstat (limited to 'libproxy/modules')
-rw-r--r--libproxy/modules/pacrunner_mozjs.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libproxy/modules/pacrunner_mozjs.cpp b/libproxy/modules/pacrunner_mozjs.cpp
index b1a89eb..b557dac 100644
--- a/libproxy/modules/pacrunner_mozjs.cpp
+++ b/libproxy/modules/pacrunner_mozjs.cpp
@@ -116,11 +116,7 @@ public:
//JS_SetOptions(this->jsctx, JSOPTION_VAROBJFIX);
//JS_SetVersion(this->jsctx, JSVERSION_LATEST);
//JS_SetErrorReporter(cx, reportError);
- #ifdef HAVE_MOZJS_2
if (!(this->jsglb = JS_NewCompartmentAndGlobalObject(this->jsctx, &cls, NULL))) goto error;
- #else
- if (!(this->jsglb = JS_NewObject(this->jsctx, &cls, NULL, NULL))) goto error;
- #endif
if (!JS_InitStandardClasses(this->jsctx, this->jsglb)) goto error;
// Define Javascript functions