Skip to content

Online example is broken #1318

Closed
Closed
@Vlad-Shcherbina

Description

@Vlad-Shcherbina

The documentation page https://rustwasm.github.io/wasm-bindgen/examples/hello-world.html has a link "view the compiled example online".

This example does not work.

To reproduce

  1. Open https://rustwasm.github.io/wasm-bindgen/exbuild/hello_world/ in your browser.

Expected behavior

Hello world alert or whatever.

Actual behavior

Blank page, nothing happens. In the JS console there is the following message:

TypeError: Cannot read property '__wbindgen_malloc' of undefined
    at passStringToWasm (hello_world.js:66)
    at Module.greet (hello_world.js:77)
    at rust.then.m (index.js:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions