summaryrefslogtreecommitdiff
path: root/libproxy/modules/pacrunner_mozjs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libproxy/modules/pacrunner_mozjs.cpp')
-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