Skip to content

fix(bindings): report wasm store error in rust bindings set_language#4348

Merged
WillLillis merged 1 commit intotree-sitter:masterfrom
WillLillis:wasm_lang_error
Apr 15, 2025
Merged

fix(bindings): report wasm store error in rust bindings set_language#4348
WillLillis merged 1 commit intotree-sitter:masterfrom
WillLillis:wasm_lang_error

Conversation

@WillLillis
Copy link
Member

Currently the rust bindings's set_language silently ignores failures from the C side involving the wasm store. This just changes the LanguageError struct into an enum representing both error states.

Closes #4345

@clason clason added wasm ci:backport release-0.25 Backport label and removed ci:backport release-0.25 Backport label labels Apr 10, 2025
@WillLillis WillLillis merged commit 9fdf685 into tree-sitter:master Apr 15, 2025
14 checks passed
@WillLillis WillLillis deleted the wasm_lang_error branch April 15, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rust-bindings: set_language/LanguageError should report WASM errors

2 participants