We originally exported WASI errno as we originally supported invoking host functions directly (e.g. without a guest). This was an invalid call pattern, and we removed that. However, we left the errnos exported even though the caller of a guest won't ever see them. This prevented us from re-using them cleanly in features such as logging. This moves all constants including function names and flag enums internal so that there is less duplication between logging and implementation of wasi functions. This also helps in reference searches, as we can analyze uses of a particular function name. The only constant left exported is the module name, as there's a use case for that (overriding implementations via FunctionBuilder). Signed-off-by: Adrian Cole <adrian@tetrate.io>
This directory contains tests which use multiple packages. For example:
benchcontains benchmark tests.enginecontains variety of end-to-end tests, mainly to ensure the consistency in the behavior between engines.fuzzcasescontains variety of test cases found by the fuzz testing.post1_0contains end-to-end tests for features finished after WebAssembly 1.0 (20191205).spectestcontains end-to-end tests with the WebAssembly specification tests.vstests and benchmarks VS other WebAssembly runtimes.
Note: This doesn't contain WASI tests, as there's not yet an official testsuite. Meanwhile, WASI functions are unit tested including via Text Format imports here