For me, the following code hangs the outer node process in 60% of cases. In other cases, it finishes with a top-level error about the unhandled promise. By slightly modifying the code, I can also come up with a version that crashes the outer process with the same top-level error without an opportunity to catch it.
For me, the following code hangs the outer node process in 60% of cases. In other cases, it finishes with a top-level error about the unhandled promise. By slightly modifying the code, I can also come up with a version that crashes the outer process with the same top-level error without an opportunity to catch it.