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

Refactor JSG exception decoding, add relevant test cases #348

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Feb 6, 2023

This commit resolves a TODO about refactoring code for different error types in decodeTunneledException. This should make the code more maintainable if there are future additions. I also added some test cases for handling compile errors and DOM exceptions since tunneling them was not tested before and adding them made it easier to spot potential bugs while refactoring the function.

@github-actions
Copy link

github-actions bot commented Feb 6, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@fhanau
Copy link
Collaborator Author

fhanau commented Feb 6, 2023

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Feb 6, 2023
src/workerd/jsg/util.c++ Outdated Show resolved Hide resolved
@fhanau fhanau merged commit 98455c9 into main Feb 6, 2023
@fhanau fhanau deleted the felix/jsg-except-refactor branch March 7, 2023 20:03
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.

2 participants