- @try { json:
- json = CYCopyJSONString(context, result);
- } @catch (id error) {
- CYThrow(context, error, &result);
- goto json;
- }
+ json = CYPoolJSONString(pool, context, result, &exception);
+ if (exception != NULL)
+ goto error;
+
+ CYSetProperty(context, CYGetGlobalObject(context), Result_, result);