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 Wasmtime-specific C API functions to return errors #1467

Merged
merged 8 commits into from
Apr 6, 2020

Commits on Apr 3, 2020

  1. Add Wasmtime-specific C API functions to return errors

    This commit adds new `wasmtime_*` symbols to the C API, many of which
    mirror the existing counterparts in the `wasm.h` header. These APIs are
    enhanced in a number of respects:
    
    * Detailed error information is now available through a
      `wasmtime_error_t`. Currently this only exposes one function which is
      to extract a string version of the error.
    
    * There is a distinction now between traps and errors during
      instantiation and function calling. Traps only happen if wasm traps,
      and errors can happen for things like runtime type errors when
      interacting with the API.
    
    * APIs have improved safety with respect to embedders where the lengths
      of arrays are now taken as explicit parameters rather than assumed
      from other parameters.
    alexcrichton committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    3b39b92 View commit details
    Browse the repository at this point in the history
  2. Handle trap updates

    alexcrichton committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    3df40bc View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2020

  1. Update C examples

    alexcrichton committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    45a558c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de089d0 View commit details
    Browse the repository at this point in the history
  3. Update test assertions

    alexcrichton committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    263683f View commit details
    Browse the repository at this point in the history
  4. Refactor C slightly

    alexcrichton committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    6434719 View commit details
    Browse the repository at this point in the history
  5. Bare-bones .NET update

    alexcrichton committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    5006701 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    da931ca View commit details
    Browse the repository at this point in the history