Skip to content

Commit

Permalink
Turn off kPromiseResolvedAfterResolved warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo authored and ry committed Dec 4, 2018
1 parent 8373046 commit f6c841a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/promise_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit f6c841a

Please sign in to comment.