Commit 81c16cd
Fix Promise.all with async orders and Go struct alignment
- Fix TsRunOrder struct size in Go wazero wrapper (16 bytes, not 12)
to account for u64 alignment padding on wasm32
- Handle PendingOrder markers in Promise.all by converting them to
order-linked promises that resolve when orders are fulfilled
- Add order_promises tracking in Interpreter for automatic promise
resolution on order fulfillment
- Fix declare function grammar to be a no-op (ambient declarations)
- Update C examples and WASM playground for consistency
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0953b0f commit 81c16cd
File tree
19 files changed
+568
-401
lines changed- examples
- c-embedding
- go-wazero/tsrun
- wasm-playground
- tests
- grammar/src
- site/playground
- src/interpreter
- builtins
- tests
- interpreter
19 files changed
+568
-401
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| |||
0 commit comments