Skip to content

wasm_run_flutter on Safari browser: build() fails #56

@michelerenzullo

Description

@michelerenzullo

Trying to .build() a basic WASM module on Safari seems to return this error, while running the same on Firefox or Chrome works fine
Tried also with .buildSync()

An error occurred: Invalid argument (name): No enum value with that name: "funcref"

I'm investigating, quite strange.

It might be related to (?)

  (table (;0;) 27 27 funcref)

UPDATE:
A couple of Issues are around _getTableType + Enum ValueTy and _getType.

  • Chrome return a Map<String, Object?> null so _getTableType execution is stopped and return a TableTy null, while Safari throw an exception when calling _getType but for some reason continue the execution of _getTableType
  • till get stopped by a mismatch in t['element'] == 'funcref' while the enum is funcRef

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions