Investigate returning `js_sys::Error` on the web client
未關閉
- 主要語言
- TypeScript
- 星號
- 1
- 分支
- 21
- 平均合併
- 13 小時 14 分鐘
- 30 天內合併 PR
- 41
描述
As of https://github.com/0xPolygonMiden/miden-client/pull/786, we added more context to the error messages returned as `JsValue`s by concatenating source errors together. @dagarcia7 suggested looking into returning `js_sys::Error` as a future improvement, adding more context by returning Javascript-native errors.
Reference: https://github.com/0xPolygonMiden/miden-client/pull/786#pullrequestreview-2696966230
貢獻指南
研究方向
查看 Web 客戶端中的錯誤處理,很可能在返回 JsValue 的 WASM 綁定中。審查 PR #786 以了解當前的拼接方法。研究 js_sys::Error API,了解如何將現有錯誤轉換為原生 JavaScript 錯誤。在瀏覽器環境中測試更改,以確保錯誤能被正確拋出和捕獲。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust, typescript, wasm
- 領域
- developer-experience, web-dev
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100