X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/26ef7a82c9367b813682af1bea19e8e788efed64..720a57a8df6f5f151bb263ef4e81e7834c5a9d96:/Execute.cpp 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;