Repository navigation
fix(javascript): preserve exact static CommonJS export keys - #1369
rudycelekli wants to merge 6 commits into
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Signed-off-by: Rudy Celekli <[email protected]>
|
Merged upstream main 39dabd0, resolving the fingerprint import conflict while preserving current lexical binding and call-reference lifetime analysis. The final diff retains the original three export-key files. Six exact-key regressions still fail on unchanged main; the repaired merge passes 37 focused tests and 48 compiled lexical-binding CLI/MCP acceptance cases. Required |
|
The remaining shard-1 failure also reproduces on untouched current main 08ec2bf. Native Node false/true execution and compiled REA CLI/trace agree that the fixture's unconditional alias rebind protects the original shared object; the unknown-coverage assertion is testing a different scenario. I prepared a focused test correction that makes the guarded write actually reach the shared object, keeps every original unknown assertion, and retains the old retargeted source as a separate known-origin/provenance control. Production code is unchanged. 289 relevant tests, required static checks and test discovery pass. The reviewed, signed patch is c1655e6. GitHub currently refuses new PR creation for my account, so it is not yet filed as a separate PR. I have retained it separately from the export-key changes. Current hosted failures remain reported as failures; no full-suite pass is claimed. |
|
I am reviewing current |
|
All 20 checks passed on |
|
Thank you for the exact CommonJS export-key fix and the public CLI/MCP verification. Closing this source PR as superseded by replacement PR #1600, whose description records that it carries the reviewed implementation and preserves contributor authorship while integrating current main. #1600 remains open for integration; this closure does not claim that the export-key fix has already landed on main. The source branch is preserved. |
Computed identifiers such as
exports[key]were reported as a literal export namedkey, and joining member components misreadmodule["exports.value"]asmodule.exports.value. Keep exact member segments for export-root identification, reuse static property-key parsing, and retain valid empty export names in assignments, object declarations, andObject.defineProperty.The maintainer follow-up preserves member helper recognition: standalone
d(...)does not declare exports, whilethis.d(exports, {...})remains supported. Classify the callee before inspecting export arguments to avoid extra work for unrelated calls.Validation on current main plus this branch:
this.dregression before the follow-up, and verify both afterward. Controlled native Node snippets establish the expected helper behavior.The historical alias-test CI failure does not reproduce on current main: its seven selected cases pass, and the full semantic graph builder suite is included in validation. The old separate signed test patch is not applied. Observational CLI/MCP traces retain explicit unknown/partial scope; no full control-flow precision claim is made.
During validation, the formatting failure on
cca7bf00was tracked in #1585 and verified resolved by the following main commit65434052; no redundant patch is included.No real native analysis providers, Notion, or Obsidian verification in this iteration. No arbitrary result truncation or Evidence removal. Original contributor authorship is preserved; maintainer commits use GitHub noreply identities. Prepared with AI assistance.