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

add an embedder API to stringify error codes #64

Merged
merged 1 commit into from
Dec 14, 2019
Merged

add an embedder API to stringify error codes #64

merged 1 commit into from
Dec 14, 2019

Conversation

cjihrig
Copy link
Collaborator

@cjihrig cjihrig commented Dec 14, 2019

This commit adds uvwasi_embedder_err_code_to_string(), which converts a uvwasi error code into a string representation of the error code.

I plan to use this in Node.js to replace a CHECK_EQ() with a thrown exception.

Refs: nodejs/node#30878

This commit adds uvwasi_embedder_err_code_to_string(), which
converts a uvwasi error code into a string representation of
the error code.
@cjihrig cjihrig mentioned this pull request Dec 14, 2019
@cjihrig cjihrig merged commit 447676a into master Dec 14, 2019
@cjihrig cjihrig deleted the errstring branch December 14, 2019 19:17
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