An experiment in requesting permissions and some related fixes.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3937 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-07-27 00:27:10 +00:00
parent b2ecc24e85
commit f787eb077b
7 changed files with 108 additions and 11 deletions

View File

@ -123,20 +123,16 @@ bool tf_util_report_error(JSContext* context, JSValue value)
JS_FreeValue(context, stack);
tf_task_t* task = tf_task_get(context);
if (task)
if (!task || !tf_task_send_error_to_parent(task, value))
{
tf_task_send_error_to_parent(task, value);
js_std_dump_error(context);
}
is_error = true;
}
else if (JS_IsException(value))
{
tf_task_t* task = tf_task_get(context);
if (task)
{
tf_task_send_error_to_parent(task, value);
}
else
if (!task || !tf_task_send_error_to_parent(task, value))
{
js_std_dump_error(context);
}