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] Arrow-function regex rejects bodies starting with exclamation mark (!) #2231
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Problem:
GitGalaxy fails to extract predicate in playwright/frames.ts.
Root Cause:
The arrow function is defined as const predicate = (e: NavigationEvent) => !e.newDocument;. The body-start lookahead for arrow functions in language_standards.py's func_start is restricted to (?:[{<]|\(|$|[a-zA-Z_$][\w$]*(?=[ \t\n]*\()|(?!(?:void|string...)\b)[a-z_][\w$]*). Because the body starts with !, which is absent from this whitelist, it is rejected.
To Reproduce:
Run tests/tools/tree_sitter_accuracy_audit.py --lang typescript and observe predicate in _missing_examples.
changed the title [-][TS] Arrow-function regex rejects bodies starting with exclamation mark (!)[/-][+][TypeScript] Arrow-function regex rejects bodies starting with exclamation mark (!)[/+]on Aug 26, 2026
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Activity
[-][TS] Arrow-function regex rejects bodies starting with exclamation mark (!)[/-][+][TypeScript] Arrow-function regex rejects bodies starting with exclamation mark (!)[/+]chore: regenerate typescript tree-sitter accuracy baseline