-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.0, 5.0.0
-
Component/s: Error
If the callback provided to `maybeCallback` throws, the process will crash with an unhandled promise rejection. This is a behavior change from `maybePromise`, which would crash the process with an uncaught exception.
In both cases, it is impossible for the user to recover but we continue to throw exceptions outside the async context of the promise used inside `maybeCallback`.
This change applies to
- the legacy driver maybeCallback
- driver v4 maybeCallback