diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-10-27 09:08:29 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-10-27 09:08:29 +0100 |
| commit | 0f1a6883b6fac86c9fed8ab1dfb91b238d9d1a94 (patch) | |
| tree | 8ea000cbca60a4d477ca8b9ba46a3bf6967a2e4b | |
| parent | 7f46cd5102a29e84bf9d9d0939311e87f072d58d (diff) | |
| download | sebastiano.tronto.net-0f1a6883b6fac86c9fed8ab1dfb91b238d9d1a94.tar.gz sebastiano.tronto.net-0f1a6883b6fac86c9fed8ab1dfb91b238d9d1a94.zip | |
Fix a couple of typos
| -rw-r--r-- | src/blog/2025-06-06-webdev/webdev.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blog/2025-06-06-webdev/webdev.md b/src/blog/2025-06-06-webdev/webdev.md index 6b049e5..50b14d9 100644 --- a/src/blog/2025-06-06-webdev/webdev.md +++ b/src/blog/2025-06-06-webdev/webdev.md | |||
| @@ -275,8 +275,8 @@ console.log("The answer is " + result); | |||
| 275 | but not, for example when running in a browser. We'll see in the next | 275 | but not, for example when running in a browser. We'll see in the next |
| 276 | session what to do in that case, but for now let's stick to this.)* | 276 | session what to do in that case, but for now let's stick to this.)* |
| 277 | 277 | ||
| 278 | Unfortunately, this will not work for a couple of reasons. The reason | 278 | Unfortunately, this will not work for a couple of reasons. The first |
| 279 | first is that Emscripten is going to add an underscore `_` to all our | 279 | reason is that Emscripten is going to add an underscore `_` to all our |
| 280 | function names; so we'll have to call `library._multiply()`. But this | 280 | function names; so we'll have to call `library._multiply()`. But this |
| 281 | still won't work, because by default the compiler does not *export* all | 281 | still won't work, because by default the compiler does not *export* all |
| 282 | the functions in your code - that is, it does not make them visible to | 282 | the functions in your code - that is, it does not make them visible to |
| @@ -1061,7 +1061,7 @@ function that, directly or indirectly, calls an async JavaScript | |||
| 1061 | function, will now return a | 1061 | function, will now return a |
| 1062 | [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) | 1062 | [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) |
| 1063 | when called from JavaScript. But wether an async function is called is | 1063 | when called from JavaScript. But wether an async function is called is |
| 1064 | determined at runtime, so you C function may return a value one time | 1064 | determined at runtime, so your C function may return a value one time |
| 1065 | and a promise another time, depending on how exactly it runs!* | 1065 | and a promise another time, depending on how exactly it runs!* |
| 1066 | 1066 | ||
| 1067 | So we are going to add `--pre-js init_idbfs.js` to our compiler options, | 1067 | So we are going to add `--pre-js init_idbfs.js` to our compiler options, |
