mirror of
https://github.com/nodejs/node.git
synced 2026-12-05 18:28:46 -05:00
Pass the error to the callback or returns a rejected Promise instead of throwing a synchonous error. Fixes: https://github.com/nodejs/node/issues/36237 PR-URL: https://github.com/nodejs/node/pull/36243 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>