Skip to content

Commit

Permalink
return, don't log, where interface expects returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
torgeir committed Apr 29, 2024
1 parent dcac473 commit e32a21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slides/presentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function run(): void {
```js
// js
import { run } from "./build/release.js";
globalThis.greet = (name) => console.log("Hello", name)
globalThis.greet = (name) => `Hello, ${name}`
run() // Hello, torgeir
```
---
Expand All @@ -302,7 +302,7 @@ const wasm = await instantiate(
{
index: {
greeter: function (name) {
console.log("Hello", name)
return `Hello, ${name}`
},
},
},
Expand Down

0 comments on commit e32a21c

Please sign in to comment.