Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 8913542

Browse files
authored
Update wasm.mdx
1 parent 8dccb54 commit 8913542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/client-apis/wasm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ In each variant, the main module is bundled as one script file. However, the wor
5050

5151
By default, the worker script is resolved under the same directory / URL prefix as the main module. If you want to change the location of the worker script, you can use pass the optional worker path parameter to the `setWorkerPath` function. For example:
5252
```javascript
53-
import { setWorkerPath } from 'kuzu-wasm';
54-
setWorkerPath('path/to/worker.js');
53+
import kuzu from "kuzu-wasm";
54+
kuzu.setWorkerPath('path/to/worker.js');
5555
```
5656

5757
Note that this function must be called before any other function calls to the WebAssembly module. After the initialization is started, the worker script path cannot be changed and not finding the worker script will cause an error.

0 commit comments

Comments
 (0)