Repository navigation
callbacks: a function is handed over only where it is written into the argument - #1801
Merged
swapnilpaliwal-sd merged 2 commits intoSep 30, 2026
Conversation
…e argument A function reached the callee of every call whose argument's abstract value might hold it: a Map key, a string, a promise, a loop variable destructured from a Map of handler sets, an object whose member held a parameter. Each config default arrow and each bus handler collected edges from unrelated get/set/has/emit/assert sites. - javascript: a project callee is registered only for a function written at the argument (literal, declaration, import, const, method read, call result); an options object only for a literal or its variable with the function written in. - javascript, typescript: Map/Set/WeakMap/WeakSet methods other than forEach store and never call; TS recognises them by declared reference or `new` initialiser. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
swapnilpaliwal-sd
requested review from
JaredHLZhang,
Whua689 and
suyashpaliwal26
as code owners
September 30, 2026 01:07
…late Goldens for JS case 34 and TS case 78 regenerated from the merged engine (--bless --oracle): 78 agrees with the compiler on 17/17, 34 has no missed or wrong sites. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
swapnilpaliwal-sd
deleted the
apps/javascript/callback-registered-invented-at-unrelate
branch
September 30, 2026 03:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A function was registered as a callback at every call whose argument's abstract value might hold it: Map keys, strings, promises, a key destructured from a Map of handler sets, an object literal whose member held a parameter. Config default arrows and bus handlers each collected edges from unrelated get/set/has/emit/assert sites, and
pathprinted them as verified.forEachnever register; TS recognises them by declared reference ornewinitialiser, with no lib staged.Object.keysalias.Checked: JS suite 88/88, TS 97/97; product callback_registered 1190 -> 1070 (edges 8944 -> 8824), per bus handler 11 -> 1, handler still reached via the bus's invoke; probes 46/70 -> 46/70, none regressed; index 21s -> 40s (shared VM).