1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

Turn off kPromiseResolvedAfterResolved warning

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2018-12-03 15:47:00 -08:00 committed by Ryan Dahl
parent 8373046719
commit f6c841a6cd

View file

@ -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}`);