Skip to content

wasm-rust-calling-from-js can not run #11

@futurechallenger

Description

@futurechallenger

Error is:

TypeError: Module.cwrap is not a function
    at Object.main [as onRuntimeInitialized] (?4001:14)
    at doRun (site.js:1)
    at run (site.js:1)
    at runCaller (site.js:1)
    at removeRunDependency (site.js:1)
    at receiveInstance (site.js:1)
    at receiveInstantiatedSource (site.js:1)

emcc:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.8
clang version 6.0.1 (https://github.com/kripken/emscripten-fastcomp-clang.git 7c43b8c67d35a870986fb92b5a04e615477ab9cf) (https://github.com/kripken/emscripten-fastcomp.git 35cedc8aba1fd36edefee3659f82e5feceb0568c) (emscripten 1.38.8 : 1.38.8)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Users/challenger/emsdk-portable/clang/fastcomp/build_incoming_64/bin
INFO:root:(Emscripten: Running sanity checks)

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