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

translate errno=-4094 errors to "no-such-device" on Windows #454

Merged
merged 1 commit into from
Jun 26, 2024

Commits on Jun 26, 2024

  1. translate errno=-4094 errors to "no-such-device" on Windows

    When an application attempts to open a non-existent path such as `//foo/bar/baz`
    on Windows, Node generates an error of the form:
    
    ```
    {
      errno: -4094,
      syscall: 'open',
      code: 'UNKNOWN',
      path: '//foo/bar/baz'
    }
    ```
    
    Prior to this commit, that error would be re-thrown, causing Wasm execution to
    trap.  Now we convert it to a "no-such-device" error instead.
    
    Signed-off-by: Joel Dice <joel.dice@fermyon.com>
    dicej committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    5d3336e View commit details
    Browse the repository at this point in the history