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:
parent
8373046719
commit
f6c841a6cd
1 changed files with 3 additions and 0 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue