Skip to content

WebAssembly FFI uses extern "C" #47599

@sdroege

Description

@sdroege

While reading https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/ I noticed the following

it is marked extern "C" so that it is publicly exported in the final .wasm file.

Shouldn't this be extern "WASM" or similar? The FFI interface is not the C one, but the WebAssembly one (or JavaScript?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions