Skip to content

WASM FFI Method Invoke should error #2405

@EinScott

Description

@EinScott

I'm not totally on top of wasm things but it seems like FFI is (currently? permanently?) disabled over there by BF_DISABLE_FFI in Internal.cpp.
In this case, bf::System::FFI::FFIResult bf::System::FFI::FFILIB::PrepCif just returns 0, which is .Ok, which doesn't seem ideal because the Beef program has no idea its method invoke actually (sort of) failed.

Stumbled across it here: EinScott/bon#4 in the context of TypeInstance.CreateObject

Sorry if I'm missing anything, I basically ignored the wasm stuff until now, hope this is helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions