From 9cc84a5ab6491e9cd4e285bed9a0f54fc86ac9b9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jun 2012 10:53:31 -0700 Subject: [PATCH] Do not convert exceptions to CYON before display. --- Execute.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Execute.cpp b/Execute.cpp index 7eb2f80..ab1b1d6 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1235,10 +1235,8 @@ const char *CYExecute(apr_pool_t *pool, CYUTF8String code) { return error; } - if (exception != NULL) { error: - result = CYCastJSValue(context, CYJSString(context, exception)); - exception = NULL; - } + if (exception != NULL) error: + return CYPoolCString(pool, context, CYJSString(context, exception)); if (JSValueIsUndefined(context, result)) return NULL; -- 2.49.0