Skip to content

path: a by-name lead on a value-callee site no longer hides the unknown verdict - #1813

Merged
swapnilpaliwal-sd merged 1 commit into
0.1.9from
fix/js-value-callee-unknown-verdict
Sep 30, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
0.1.9from
fix/js-value-callee-unknown-verdict

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

javascript/stored-field-callee-shapes in the query-layer suite (tests/run.py, which CI does not run) failed 3 of 18 checks on 0.1.9. Two commits that each passed on their own interact:

  • One added wrapper-holder rules keyed on promisify's result being a platform value.
  • The other made promisify transparent, so its result takes its argument's value and is no longer a platform value.

After both, there are two separate effects:

  • Checks that now resolve exactly. A promisify wrapper whose bound method is typed now resolves straight to that method as known_edge. That is the more precise answer the promisify change intended, so those two checks now expect known_edge.
  • A regression in path. An untyped this.find(), where find is a field holding a function, is a site the engine marks as a function-valued callee. path's by-name search matched it first ("WOULD connect … receiver not typed") and returned before the "connection is UNKNOWN" verdict could run. The by-name branch now skips a chain when every site it would bridge is one the engine marked as a function-valued callee, so the unknown verdict answers and names the site.

This changes the query layer only; engine rules and the parser are untouched.

Tests (rebased on the current 0.1.9)

  • stored-field-callee-shapes: 18/18.
  • The by-name path cases: path-crosses-framework-and-byname passes 14/14 on each of Python and C#, and path-crosses-remote-and-byname passes 11/11 on Java.
  • tests/run.py --lang javascript: 245/245, against 242/245 before this change.

…wn verdict

Symptom: path Svc.login Store.find, where Svc.login calls this.find() on a field
holding promisify(s.find.bind(s)) with s untyped, printed "WOULD connect ... receiver
not typed" and never said the connection is unknown or that the callee is a function
stored in a field. path viaModule / Auth.login Store.find reported known_edge where the
case wanted multi_inferred.

Cause: two changes to the same shape landed together. The promisify rules made
util.promisify(f) transparent (its value is what f holds) and dropped its platform
value, so the wrapper-holder rules keyed on that platform value no longer fire. With
a typed bound method the call now resolves straight to it (known_edge, one
declaration); with an untyped one the call is an ordinary unresolved site, which the
by-name search bridges and returns on before the value-callee report runs, although
the engine still marks the site as a field value callee.

Fix: the by-name branch skips a chain whose every bridge site is a value callee, so
the value-callee report (UNKNOWN, the site, "named like the target") answers. The
case now expects known_edge for the two resolved wrappers.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 1ea8f18 into 0.1.9 Sep 30, 2026
12 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the fix/js-value-callee-unknown-verdict branch September 30, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant