Description[debug] Don't notify listener of exceptions internal to a desugaring.
In the parser, we desugar yield* with the help of a regular yield. One
particular implementation detail of this desugaring is that when the user calls
the generator's throw method, this throws an exception that we immediately
catch. This exception should not be visible to the user, but through Devtools'
"Pause on Caught Exceptions" feature it used to be.
This CL extends the type of catch predictions with a new value for such internal
exceptions and uses that for the offending try-catch statement in yield*. It
instruments the debugger to _not_ trigger an exception event in that case.
R=yangguo@chromium.org
TBR=littledan@chromium.org
BUG=v8:5218
Committed: https://crrev.com/f813494fcc15497908ac5701e495a5bbc3cf9676
Cr-Commit-Position: refs/heads/master@{#38286}
Patch Set 1 #Patch Set 2 : Rebase #
Messages
Total messages: 19 (9 generated)
|