@woosh/meep-engine 2.110.0 → 2.110.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/meep.cjs CHANGED
@@ -84123,6 +84123,8 @@ class ConcurrentExecutor {
84123
84123
  task.state.set(TaskState.FAILED);
84124
84124
  task.on.failed.send1(reason);
84125
84125
 
84126
+ if (!task.on.failed.hasHandlers()) ;
84127
+
84126
84128
  this.resolveTasks();
84127
84129
 
84128
84130
  this.on.task_completed.send1(task);
@@ -84210,7 +84212,12 @@ class ConcurrentExecutor {
84210
84212
  try {
84211
84213
  executionTime = this.#runTaskForTimeMonitored(task, sliceTimeLeft);
84212
84214
  } catch (e) {
84213
- this.#fail_task(task, e);
84215
+ const error = new Error("Task threw an exception");
84216
+
84217
+ error.cause = e;
84218
+
84219
+ // console.error(`Task threw an exception`, task, e);
84220
+ this.#fail_task(task, error);
84214
84221
  }
84215
84222
 
84216
84223
  this.#cycle_count++;