Commit 1ffba2c
authored
fix(core): Do not remove promiseBuffer entirely (#19592)
closes #19589
closes
[JS-1839](https://linear.app/getsentry/issue/JS-1839/flushanddispose-in-10410-crashes-when-workerentrypoint-rpc-methods-use)
It seems that there are way to rely on the memory leak on Cloudflare.
When that is the case the promise buffer is set to undefined and would
fail in a latter step. Creating a new promise buffer would release
everything we had before and mark with that it would be ready to be
released by the garbage collector.
The transport above is ok to be set to undefined, as it is readonly on
TypeScript level.1 parent 4a7c056 commit 1ffba2c
File tree
2 files changed
+23
-2
lines changed- packages/core
- src
- test/lib
2 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
304 | 324 | | |
0 commit comments