]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : add HEAPU8 to exported runtime methods (#3062)
authorDaniel Bevenius <redacted>
Sun, 20 Apr 2025 17:40:25 +0000 (19:40 +0200)
committerGitHub <redacted>
Sun, 20 Apr 2025 17:40:25 +0000 (19:40 +0200)
commit3a88f1e50405417ad4272c576b0081075ed6d0ef
tree6a5e1e34763fb1ea969d9d67213fefe5a4993220
parentf0d2bfbfb77e01df6160f64d249bd43e75e11660
examples : add HEAPU8 to exported runtime methods (#3062)

This commit adds `HEAPU8` to the list of exported methods.

The motivation for this commit is that currently this is causing an
error on Window systems where HEAPU8 in undefined, which results in the
following error message in the web console:
```console
main.js:1 Uncaught TypeError:
Cannot read properties of undefined (reading 'buffer') at __emval_get_property
(main.js:1:1363125) at 003a453a:0xc4a47 at 003a453a:0xc51cd at
Object.full_default (eval at craftInvokerFunction (main.js:1:1347011),
<anonymous>:9:10) at whisper.cpp/:647:42
```

Resolves: https://github.com/ggml-org/whisper.cpp/issues/3059
examples/whisper.wasm/CMakeLists.txt