What is the difference between `@JsExport` and `@W...
# webassembly
a
What is the difference between
@JsExport
and
@WasmExport
in kotlin/wasm context?
s
@WasmExport
(and
@WasmImport
) - can be used in both
wasmJs
and
wasmWasi
, and intended for low-level interop with other Wasm code. Only number types and
Boolean
are currently supported.
@JsExport
can only be used in
wasmJs
, and performs conversion to and from JS types for things like
Boolean
,
String
and lambdas.
🙏 1