Commit 6671ac4
fix: fix missing initialSyncDepth logic
This patch declares initialSyncDepth (and ensure syncDepth is
initialized) in the wasm inlined JS runner so nested sync callbacks
start with the correct depth. Do the same in the standalone
jsaddleScript used for workers, keeping both entry points aligned with
upstream JSaddle changes. Fixes the runtime ReferenceError that broke
TodoMVC after updating jsaddle to the latest upstream.
Co-authored-by: Codex <codex@openai.com>1 parent d1685e7 commit 6671ac4
File tree
3 files changed
+4
-1
lines changed- src-js/Language/Javascript/JSaddle/Wasm
- src-wasm/Language/Javascript/JSaddle/Wasm
3 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments