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

[wasm] Make some libc stubs return an error instead of asserting. #38256

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Jun 23, 2020

Fixes #38164.

@hoyosjs hoyosjs added arch-wasm WebAssembly architecture area-VM-meta-mono and removed area-VM-coreclr labels Jun 23, 2020
@@ -722,24 +722,24 @@ ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count);

ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it done here and not at a higher level with better exception type and less code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are libc stubs they should error out instead of asserting.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I agree.

@akoeplinger akoeplinger merged commit 178176b into dotnet:master Jun 23, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WASM] Environment.UserName raises "not supported" exception
6 participants