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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user