aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Simon Lipp <sloonz@gmail.com>2010-01-01 00:56:51 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2010-01-01 23:36:53 +0100
commit7008808e0defff7a43abdd64d8c9df27b4eec000 (patch)
tree09f09c4098b20fb1339bb7480a21c807078fcf16
parentfd1fce360b8ef484f48f5786081834628ba67a7d (diff)
eval_js: use JavaScriptCore internal function to convert exception message to string (more verbose)
-rw-r--r--uzbl-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/uzbl-core.c b/uzbl-core.c
index 9c8660e..bc294b4 100644
--- a/uzbl-core.c
+++ b/uzbl-core.c
@@ -1104,15 +1104,13 @@ eval_js(WebKitWebView * web_view, gchar *script, GString *result) {
JSStringRelease(val);
/* Print message */
- prop = JSStringCreateWithUTF8CString("message");
- val = JSValueToStringCopy(context, JSObjectGetProperty(context, exc, prop, NULL), NULL);
+ val = JSValueToStringCopy(context, exc, NULL);
size = JSStringGetMaximumUTF8CStringSize(val);
if(size) {
char cstr[size];
JSStringGetUTF8CString(val, cstr, size);
printf("%s\n", cstr);
}
- JSStringRelease(prop);
JSStringRelease(val);
}