]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
bindings.javascript : update test instructions [no ci] (#2951)
authorDaniel Bevenius <redacted>
Wed, 26 Mar 2025 13:49:12 +0000 (14:49 +0100)
committerGitHub <redacted>
Wed, 26 Mar 2025 13:49:12 +0000 (14:49 +0100)
This commit updates the instructions for running the test in the
JavaScript bindings README file.

The motivation for this is for Node.js versions after v16.4.0 the
`--experimental-wasm-threads` and `--experimental-wasm-simd` flags are
no longer required and they generate the following errors:
```console
$ node --experimental-wasm-threads --experimental-wasm-simd ../tests/test-whisper.js
node: bad option: --experimental-wasm-threads
node: bad option: --experimental-wasm-simd
```

bindings/javascript/README.md

index 87f3480574c43babb895a2a38fb559182e4f5153..5e726e13d2c9d6428bb693dfa5b7838ac339496b 100644 (file)
@@ -33,6 +33,9 @@ mkdir build-em && cd build-em
 emcmake cmake .. && make -j
 
 # run test
+node ../tests/test-whisper.js
+
+# For Node.js versions prior to v16.4.0, experimental features need to be enabled:
 node --experimental-wasm-threads --experimental-wasm-simd ../tests/test-whisper.js
 
 # publish npm package