Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle errors thrown by reportError in queueMicrotask #2778

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Sep 23, 2024

No description provided.

@jasnell jasnell requested review from a team as code owners September 23, 2024 23:23
anonrig

This comment was marked as resolved.

@jasnell jasnell force-pushed the jsnell/handle-queuemicrotask-reporterror-errors branch from 62e8d9f to e9bfcc4 Compare September 24, 2024 14:59
@jasnell jasnell force-pushed the jsnell/handle-queuemicrotask-reporterror-errors branch from 73f278f to db3740b Compare September 25, 2024 16:43
@jasnell
Copy link
Member Author

jasnell commented Sep 25, 2024

Based on feedback from @kentonv ... the PR is updated to simply log the error rather than abort anything. We can work on abort behavior with a compat flag separately once we've had more time to properly plan out consistent unhandled error / unhandled rejection handling that is more reliable.

@kentonv
Copy link
Member

kentonv commented Sep 25, 2024

he PR is updated to simply log the error rather than abort anything.

That sounds good to me. But I don't see the update yet.

@jasnell
Copy link
Member Author

jasnell commented Sep 25, 2024

... But I don't see the update yet.

Grrr... I hadn't noticed that the precommit hook had blocked it. There now.

@jasnell jasnell force-pushed the jsnell/handle-queuemicrotask-reporterror-errors branch from f9316d2 to a7dc424 Compare September 25, 2024 18:19
@jasnell
Copy link
Member Author

jasnell commented Sep 25, 2024

Linter is complaining about the better formatting so will go with the weird formatting for now.

src/workerd/api/global-scope.c++ Show resolved Hide resolved
src/workerd/api/global-scope.c++ Show resolved Hide resolved
@jasnell jasnell force-pushed the jsnell/handle-queuemicrotask-reporterror-errors branch from a7dc424 to ca1f902 Compare September 25, 2024 21:13
@jasnell jasnell merged commit 3615ece into main Sep 25, 2024
14 checks passed
@jasnell jasnell deleted the jsnell/handle-queuemicrotask-reporterror-errors branch September 25, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants