<分区>
快速前言:我懂Promises,我懂resolving和rejection。这不是问题。
(node:14104) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: "callback" argument must be a function
(node:14104) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\
我了解到我的代码中某处有一个“回调”参数,它应该是一个函数,但不是。那也不是我的问题。
如何找到发生未处理拒绝的代码行?