DescriptionFix crash from turning on DevTools in the middle of catch prediction
If DevTools is turned on in the middle of doing some things with async
functions, then more items may be popped from the Promise stack than were
pushed to it. In this sort of case, it's OK to have a catch misprediction,
but a crash is unacceptable. This patch defensively handles this edge
case where the Promise stack is unexpectedly empty for that reason.
BUG=v8:5167
Committed: https://crrev.com/cd049c2c761739590e42dd3e4213a88959163b8d
Cr-Commit-Position: refs/heads/master@{#39705}
Patch Set 1 #Patch Set 2 : Format #
Total comments: 4
Patch Set 3 : Simplify code in ASYNC_AWAIT case of GetPromiseOnStackOnThrow #
Messages
Total messages: 18 (11 generated)
|