Repository navigation
Commit 2061afd
committed
fix(octane): exclude arrows named async from receiver tracking
The ARROW_HEAD regex used \s* after the async prefix, allowing it to
match method-named-async source text 'async(' (no whitespace). A
separate method.name !== 'async' guard excluded that false positive,
but also incorrectly excluded parenthesized arrows whose inferred name
happened to be 'async' (e.g. const async = () => {} or { async: () => {} }).
Fix: require \s+ (at least one whitespace character) after the async
prefix. This rejects 'async(' (method) at the regex level and removes
the need for the name guard, so arrows with an inferred name of 'async'
are correctly classified.1 parent 56685f9 commit 2061afd
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
0 commit comments