mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 11:01:11 +00:00
fix(javascript): scope candidate this event receivers (#4656)
* fix(javascript): scope candidate this event receivers Preserve lexical receiver scopes and possible local inheritance links without asserting runtime this identity. Keep decorator evaluation outside method receiver and callable boundaries. Fixes #3360 AI-assisted implementation and verification with OpenAI Codex; human PR ownership and readiness remain unfilled. * fix(javascript): retain receivers through type wrappers Reuse the canonical expression normalizer to preserve object function receiver identity through transparent wrappers. Keep arrows, computed keys and non-transparent expressions separate. AI-assisted implementation and verification with OpenAI Codex. * fix(javascript): retain enclosing receivers for computed keys Apply the existing computed-method-key evaluation boundary before non-arrow receiver selection. Cover object method keys and bodies through semantic IR and CLI/MCP regressions. --------- Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
1 parent
66f0882ece
commit
17940852ed
5 files changed
+467
-11
No files matched your search
@@ -406,7 +406,15 @@ search, semantic tracing, and version comparison use the preserved values.
|
||||
Event and listener nodes likewise preserve the complete event name in
|
||||
`properties.event_name`. Event role keys use the same reserved-prefix string
|
||||
digest rule, scoped to the emitter; repeated registrations, removals, and
|
||||
dispatches keep one event per exact emitter/name pair. Long event labels use
|
||||
dispatches keep one event per exact emitter/name pair. Class `this` receivers
|
||||
have separate instance and static candidate families. Possible local bases,
|
||||
including conditional bases, connect matching sides; a shared unknown external
|
||||
base does not connect unrelated classes. Member arrows inherit their side,
|
||||
while computed keys, decorators and heritage use the enclosing receiver.
|
||||
All `this` identities remain incomplete, with candidate relations and explicit
|
||||
event unknowns. Receiver rebinding and external/cross-file inheritance remain
|
||||
unresolved. New analyses change class `this` event IDs; select fresh graph IDs.
|
||||
Long event labels use
|
||||
`event`, and listener labels use the shorter of `<method>:<name>` and
|
||||
`<method>:listener`. Dynamic names remain `null` with explicit uncertainty. Query
|
||||
the preserved name or select IDs from the parent graph. Previously stored graphs keep their
|
||||
|
||||
Reference in new issue
Block a user