Open Bug 1237808 Opened 8 years ago Updated 2 years ago

Include asyncCaller when iterating rejection frames

Categories

(Toolkit :: Async Tooling, defect)

43 Branch
defect

Tracking

()

People

(Reporter: jryans, Unassigned)

Details

Attachments

(1 file)

Some parts of our code now join two sides of an async operation into one stack with things like Cu.callFunctionWithAsyncStack.

By checking the `asyncCaller` part of a stack, we can continue across the async barrier when reporting rejection stacks.
Comment on attachment 8705381 [details]
MozReview Request: Bug 1237808 - Include asyncCaller when iterating rejection frames. r=Yoric

https://reviewboard.mozilla.org/r/29953/#review26819

::: toolkit/modules/Promise-backend.js:197
(Diff revision 1)
> -            stack = stack.caller;
> +            stack = stack.asyncCaller || stack.caller;

Mmmmh.... Is it really `asyncCaller` when we're trying to remove top frames?

It would be great if you had a test for that.
Attachment #8705381 - Flags: review?(dteller)
Assignee: jryans → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: