We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8004e06 commit ca0715eCopy full SHA for ca0715e
apps/site/pages/en/learn/getting-started/nodejs-with-webassembly.md
@@ -66,7 +66,7 @@ WebAssembly.instantiate(wasmBuffer).then(wasmModule => {
66
import fs from 'node:fs/promises';
67
68
// Use readFile to read contents of the "add.wasm" file
69
-const wasmBuffer = await fs.readFile('path/to/add.wsm');
+const wasmBuffer = await fs.readFile('/path/to/add.wasm');
70
71
// Use the WebAssembly.instantiate method to instantiate the WebAssembly module
72
const wasmModule = await WebAssembly.instantiate(wasmBuffer);
@@ -76,7 +76,7 @@ const { add } = wasmModule.instance.exports;
76
77
const sum = add(5, 6);
78
79
-console.log(sum); // Outputs 11
+console.log(sum); // Outputs: 11
80
```
81
82
## Interacting with the OS
0 commit comments