Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2829: Improve error message oriented from JS object r=syrusakbary a=kateinoigakukun <!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests --> # Description <!-- Provide details regarding the change including motivation, links to related issues, and the context of the PR. --> `JsValue.as_string` converts the value to String iff the value is a String itself, so the error message always failovers to empty string. `JsValue` impls `Debug` using `JSON.stringify`, and it gives better description of the error. # Review - [ ] Add a short description of the change to the CHANGELOG.md file Co-authored-by: Yuta Saito <[email protected]> Co-authored-by: Syrus Akbary <[email protected]>
- Loading branch information