aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Simon Lipp <sloonz@gmail.com>2010-01-02 01:18:10 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2010-01-18 22:07:51 +0100
commitd84b07fd743b1460c0acede3889020165d193dfb (patch)
treeeabde5bbf559c8b960d61dfc727da2458bf318b1 /src
parent91e081938617e24dea672949c58b8dbad8d19630 (diff)
eval_js: catch non-object (int, string,...) exceptions
Diffstat (limited to 'src')
-rw-r--r--src/uzbl-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c
index 8a053f6..0acd0c5 100644
--- a/src/uzbl-core.c
+++ b/src/uzbl-core.c
@@ -1077,7 +1077,7 @@ eval_js(WebKitWebView * web_view, gchar *script, GString *result) {
JSStringRelease(js_result_string);
}
- else if (js_exc && JSValueIsObject(context, js_exc)) {
+ else if (js_exc) {
size_t size;
JSStringRef prop, val;
JSObjectRef exc = JSValueToObject(context, js_exc, NULL);