Sort of barely starting to call httpd callbacks with the new implementation.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4686 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-12-21 01:27:57 +00:00
parent f9940fc436
commit 6ecbfe3de6
4 changed files with 68 additions and 7 deletions

View File

@ -180,7 +180,12 @@ bool tf_util_report_error(JSContext* context, JSValue value)
else if (JS_IsException(value))
{
tf_task_t* task = tf_task_get(context);
tf_task_send_error_to_parent(task, value);
if (!tf_task_send_error_to_parent(task, value))
{
JSValue exception = JS_GetException(context);
tf_util_report_error(context, exception);
JS_FreeValue(context, exception);
}
is_error = true;
}
return is_error;