aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2016-08-19 11:24:15 +0200
committerMarcel Holtmann <marcel@holtmann.org>2016-08-19 11:24:15 +0200
commit1e28e9d638fb4b84bcad7526273974b5e2728e28 (patch)
tree349d6b5006fc16460c120e29255735dedd6884af
parent2755217122c4c570cbd953a5846e6cb63df46c3a (diff)
downloadpacrunner-1e28e9d638fb4b84bcad7526273974b5e2728e28.tar.gz
v8: Set plugin priority to low because of missing instance support
-rw-r--r--plugins/v8.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/v8.cc b/plugins/v8.cc
index 00aef82..18ca965 100644
--- a/plugins/v8.cc
+++ b/plugins/v8.cc
@@ -148,7 +148,7 @@ static void create_object(void)
jsctx.Dispose();
return;
}
-
+
jsfn = v8::Persistent<v8::Function>::New(v8::Handle<v8::Function>::Cast(fn_val));
return;
}
@@ -219,7 +219,7 @@ static char *v8_execute(struct pacrunner_proxy *proxy, const char *url,
line, *err);
return NULL;
}
-
+
if (!result->IsString()) {
DBG("FindProxyForUrl() failed to return a string");
return NULL;
@@ -229,13 +229,13 @@ static char *v8_execute(struct pacrunner_proxy *proxy, const char *url,
if (!gc_source)
gc_source = g_idle_add(v8_gc, NULL);
-
+
return retval;
}
static struct pacrunner_js_driver v8_driver = {
"v8",
- PACRUNNER_JS_PRIORITY_HIGH,
+ PACRUNNER_JS_PRIORITY_LOW,
v8_set_proxy,
NULL,
v8_execute,