Commit 0536afc
Quality: Global mutable call id can grow unbounded across long-lived processes (#2691)
* refactor: global mutable call id can grow unbounded across l
`callId` is module-scoped and incremented on every invocation. In long-running test runners or embedded usage, this can grow indefinitely and eventually lose integer precision semantics for strict ordering comparisons.
Affected files: proxy-invoke.js
Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
* Wrap around for all values that are too high
---------
Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>1 parent f4f7d93 commit 0536afc
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments