Skip to content

[Skwasm] Remove dependency on WebAssembly.Function #134556

@eyebrowsoffire

Description

@eyebrowsoffire

Skwasm uses WebAssembly.Function in order to export a callback to the skwasm module. This is unfortunate for several reasons:

  • This creates a needless Wasm Function -> JS Function -> Wasm Function layering that is probably slow
  • It creates a dependency on the type reflection proposal, which we'd like to avoid.
    The main reason I can't just export the callback directly is because we need access to the Wasm types in dart:_wasm in order to declare the proper signatures and also create a wasm function reference out of a dart function. I'll need to look into how we can give the flutter engine specifically access to the dart:_wasm library.

Metadata

Metadata

Labels

P2Important issues not at the top of the work liste: wasmIssues related to the wasm build of Flutter Web.e: web_skwasmSkwasm rendering backend for webteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions