Repository navigation
fix(javascript): bound the bare call-site identifier alternative's param-list class to reject nested calls - #1462
Merged
squid-protocol merged 2 commits intoAug 13, 2026
Conversation
squid-protocol
enabled auto-merge (squash)
August 13, 2026 16:29
…ram-list class to reject nested calls (#1452) The bare-call-site-identifier func_start alternative used [^)]* for its trailing lookahead's parameter-list portion, which could greedily consume through a nested inline callback's own opening paren and stop at the callback's closing paren instead -- e.g. `swap( elem, cssShow, function() {` satisfied the lookahead with the callback's own `)` and `{`, while the actual matched text was just the bare identifier `swap` with zero capturing groups, triggering detector.py's match.lastindex-fallback naming and reporting the CALL target (an imported function, not a definition) as a phantom function. Fixed by restricting the character class to [^)(]* so it can no longer step into a nested paren. extra_functions 193->187, found_functions unchanged at 535. Co-Authored-By: Claude Sonnet 5 <[email protected]> Co-Authored-By: Gemini 3.1 Pro <[email protected]>
squid-protocol
force-pushed
the
fix/javascript-1452-bare-identifier-fallback
branch
from
August 13, 2026 17:47
2c6d647 to
960d444
Compare
squid-protocol
deleted the
fix/javascript-1452-bare-identifier-fallback
branch
August 13, 2026 17:47
Contributor
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.
Fixes #1452. A one-character regex fix: the bare-call-site-identifier func_start alternative used [^)]* for its trailing lookahead, which could greedily step into a nested inline callback's own parens (e.g.
swap( elem, cssShow, function() {) and match with zero capturing groups, triggering detector.py's fallback-to-whole-match-text naming and reporting the call target (not a definition) as a phantom function. Restricted to [^)(]* so it can't step into a nested paren. extra_functions 193->187, found_functions unchanged. Full checklist run: tests pass, --all --ci clean across 31 languages, golden masters blessed, audit_check clean.🤖 Generated with Claude Code + Gemini (Antigravity CLI)