Skip to content

Commit 2699e14

Browse files
authored
bindings.javascript : update test instructions [no ci] (#2951)
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 ```
1 parent 594a121 commit 2699e14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindings/javascript/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ mkdir build-em && cd build-em
3333
emcmake cmake .. && make -j
3434

3535
# run test
36+
node ../tests/test-whisper.js
37+
38+
# For Node.js versions prior to v16.4.0, experimental features need to be enabled:
3639
node --experimental-wasm-threads --experimental-wasm-simd ../tests/test-whisper.js
3740

3841
# publish npm package

0 commit comments

Comments
 (0)