提交 f6c841a6 编写于 作者: K Kevin (Kun) "Kassimo" Qian 提交者: Ryan Dahl

Turn off kPromiseResolvedAfterResolved warning

上级 83730467
......@@ -22,6 +22,9 @@ export function promiseRejectHandler(
case "HandlerAddedAfterReject":
rejectMap.delete(promise);
break;
case "ResolveAfterResolved":
// Should not warn. See #1272
break;
default:
// error is string here
otherErrorMap.set(promise, `Promise warning: ${error as string}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册