Alexander Girke
05/20/2023, 10:49 AM@JsName export names), but doesn’t run yet due to missing implementation of GC proposal in wasmparser crate (Ivan Mikushin said that he thinks he can complete that in ~1month) and maybe others. Also, memory allocation & de-allocation will probably not work as expected. I tried to stick as close to the TeaVM Java implementation as possible to minimize maintenance later, but of course I don’t know yet if the generated code would actually run correctly.
If you want to have a look at generated test code, run cargo test in the repository’s root directory & view the files at target/runtime-tests/{test-case}/kotlin-{test-case} - currently, {test-case} equals one of smoke (already free of any compile error because there are no exports), lists, numbers, records or variants. Please let me know if you see any obvious issues.