From ba7d1ad35fbd9d79340e576e3ac7c8aed9905336 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 1 Dec 2024 09:48:15 -0500 Subject: [PATCH] core: This case is not a good cause to crash. --- src/task.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/task.c b/src/task.c index 53289094..8303559d 100644 --- a/src/task.c +++ b/src/task.c @@ -1338,8 +1338,7 @@ void tf_task_resolve_promise(tf_task_t* task, promiseid_t promise, JSValue value } else { - tf_printf("Didn't find promise %d to resolve.\n", promise); - abort(); + tf_printf("WARNING: Didn't find promise %d to resolve.\n", promise); } } @@ -1368,8 +1367,7 @@ void tf_task_reject_promise(tf_task_t* task, promiseid_t promise, JSValue value) } else { - tf_printf("Didn't find promise %d to reject.\n", promise); - abort(); + tf_printf("WARNING: Didn't find promise %d to reject.\n", promise); } }