Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Fix #75: Use WebAssembly.JSTag as our exception tag. #103

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

sjrd
Copy link
Collaborator

@sjrd sjrd commented Apr 15, 2024

First switch to using the legacy try instruction to implement TryCatch, because try_table will only support catching JSTag from V8 12.5. Luckily we don't have to do that for TryFinally!

This will allow to use the `JSTag` behavior for catching JS
exceptions, while waiting for Node.js to catch up with V8 12.5.

Luckily, we only need that for `TryCatch` and not for `TryFinally`.
This allows us to actually catch exceptions thrown by JavaScript
code.
@sjrd sjrd requested a review from tanishiking April 15, 2024 15:35
Copy link
Owner

@tanishiking tanishiking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanishiking tanishiking merged commit c2b2ec7 into tanishiking:main Apr 16, 2024
1 check passed
@sjrd sjrd deleted the catch-js-exceptions branch April 16, 2024 07:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants