-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stack overflow when calculating wasm function signature (#1100)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Fix stack overflow in WebAssembly function signature calculation and improve logging, error handling, and testing. > > - **Behavior**: > - Fix stack overflow in `get_dummy_value()` in `mod.rs` by correctly handling `Constrained` field types. > - Initialize `wasm_logger` in `on_wasm_init()` in `mod.rs` to enable logging of `info` messages. > - **Debugging**: > - Add `Debug` trait to `WasmError`, `WasmFunction`, `WasmSpan`, `WasmGeneratorConfig`, `WasmParentFunction`, `WasmTestCase`, and `WasmParam` in `mod.rs`. > - **Testing**: > - Add `test_diagnostics_no_errors_2()` in `test_file_manager.rs` to verify diagnostics with no errors. > - Update `test_diagnostics_no_errors()` in `test_file_manager.rs` to include function listing. > - **TypeScript**: > - Fix `requestDiagnostics()` in `baml_project_manager.ts` to handle undefined runtime. > - Add error handling for `runtime_updated` request in `server.ts`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 48fae24. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
4 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters