Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message oriented from JS object #2829

Merged
merged 2 commits into from
Mar 28, 2022

Conversation

kateinoigakukun
Copy link
Contributor

Description

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

`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.
@kateinoigakukun kateinoigakukun force-pushed the katei/improve-js-error-message branch from 2a95247 to 7adcfef Compare March 27, 2022 16:33
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

Nice fix!

@syrusakbary
Copy link
Member

bors r +

@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 27, 2022

Merge conflict.

@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 28, 2022

@bors bors bot merged commit 2ec7862 into wasmerio:master Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants