Commit 8bf26bf
authored
Fix audio worklet + memory64 (#22731)
There are a two different fixes here, neither of which are needed except
in the nightly version of chrome.
1. In the `instantiateWasm` override used in audio worklets return the
result of `receiveInstance` rather then directly returning the wasm
exports. This means that the resulting object has the needed wrappers
applied. This was causing an exception even on older version of chrome,
but the tests still passed regardless. With newer versions of chrome the
exception seems to cause the worklet creation to fail. (see #18711)
2. Using BigInt when indexing the wasm table. I would have prefered to
use `toIndexType` here but that doesn't work in `audio_worklet.js`.1 parent 0486179 commit 8bf26bf
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | | - | |
| 1133 | + | |
1134 | 1134 | | |
1135 | 1135 | | |
0 commit comments