-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add error handling for stderrno when errno is invalid #25762
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "a.out.js": 245483, | ||
| "a.out.nodebug.wasm": 574056, | ||
| "total": 819539, | ||
| "a.out.nodebug.wasm": 573907, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How did this one get smaller?? Strange.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. possibly heavy optimization takes the return "Unknown error" branch and avoids the more complicated |
||
| "total": 819390, | ||
| "sent": [ | ||
| "IMG_Init", | ||
| "IMG_Load", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| { | ||
| "hello_world.js": 56928, | ||
| "hello_world.js.gz": 17700, | ||
| "hello_world.wasm": 15117, | ||
| "hello_world.wasm.gz": 7456, | ||
| "hello_world.wasm": 15168, | ||
| "hello_world.wasm.gz": 7488, | ||
| "no_asserts.js": 26632, | ||
| "no_asserts.js.gz": 8884, | ||
| "no_asserts.wasm": 12217, | ||
| "no_asserts.wasm.gz": 6015, | ||
| "strict.js": 54943, | ||
| "strict.js.gz": 17045, | ||
| "strict.wasm": 15117, | ||
| "strict.wasm.gz": 7451, | ||
| "total": 180954, | ||
| "total_gz": 64551 | ||
| "strict.wasm": 15168, | ||
| "strict.wasm.gz": 7482, | ||
| "total": 181056, | ||
| "total_gz": 64614 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /* | ||
| * Copyright 2025 The Emscripten Authors. All rights reserved. | ||
| * Emscripten is available under two separate licenses, the MIT license and the | ||
| * University of Illinois/NCSA Open Source License. Both these licenses can be | ||
| * found in the LICENSE file. | ||
| */ | ||
|
|
||
| #include <stdio.h> | ||
| #include <string.h> | ||
|
|
||
| int main() { | ||
| printf("errno: %s\n", strerror(-1)); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| errno: Unknown error |
Uh oh!
There was an error while loading. Please reload this page.