You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TypeScript] func_start names a quoted method async "array-objects"() {} as async #3760
// packages/bench/compile-vs-arktype.ts:414 (colinhacks/zod@2bf7b0630d53)async"array-objects"(){awaitmetabench("array of 50 objects",{ ... }).run();},
The engine extracts this object-literal method as a function named async. The name is a string-literal key ("array-objects"), and the modifier keyword is captured instead. Calls from its body are attributed to a unit called async (found as an unmapped caller in the new Level 2 TypeScript check, tests/tools/call_graph_resolution.py typescript, branch claude/optimistic-heisenberg-bta91d). async then also enters the repo's definition index as a callable name.
Expected
The unit is named array-objects (the string key without its quotes), or at least never a modifier keyword (async, static, get, set, *). The same check probably applies to JavaScript's func_start. Worth adding a valid-case entry to tests/extraction/languages/test_typescript.py (and test_javascript.py) per tests/extraction/how_to_harden_extraction.md.
Activity
detector (ts/js): name a quoted method key after a modifier by the ke…