Commit 078002f
committed
fix(formula): report an unnameable bound as
`parseCelToAstWithReason`'s "cel-js raised a limit fault whose key this package
cannot read" branch filled the overrun with `maxAstNodes` while its own comment
said a guessed name is the thing to avoid. It is unreachable on cel-js 8.0.0 —
`Parser#limitExceeded` always phrases it `Exceeded <key> (<n>)` — but a guessed
key is worse than none: the author goes and shortens the wrong axis. The branch
now reports `{ limit: null, limitValue: null }`, which the types carry, and
hands back no unbounded AST, so the pushdown path fails closed on it in either
position of the switch rather than compiling something it cannot describe.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bx3H8DJhBsmgDoMp8Tz87Tlimit: null, not as a guessed key (#6132)1 parent 501c4d6 commit 078002f
2 files changed
Lines changed: 28 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
291 | 296 | | |
292 | | - | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
475 | | - | |
476 | 480 | | |
477 | 481 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
481 | 489 | | |
482 | 490 | | |
483 | 491 | | |
484 | 492 | | |
485 | | - | |
| 493 | + | |
486 | 494 | | |
487 | 495 | | |
488 | 496 | | |
| 497 | + | |
489 | 498 | | |
490 | 499 | | |
491 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | | - | |
181 | | - | |
| 186 | + | |
| 187 | + | |
182 | 188 | | |
183 | 189 | | |
184 | 190 | | |
| |||
0 commit comments