Skip to content

Accept CJS exports pattern baseline diffs#3781

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-cjs-exports-pattern
Open

Accept CJS exports pattern baseline diffs#3781
Copilot wants to merge 2 commits intomainfrom
copilot/fix-cjs-exports-pattern

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Accepts baseline diffs for CJS declaration emit changes as intentional. Corsa no longer binds nested JS exports, producing a new Nested CommonJS export constructs cannot be serialized for declaration emit error instead.

  • Moved 4 diff files from submoduleTriaged/submoduleAccepted/
  • Updated submoduleAccepted.txt / submoduleTriaged.txt accordingly

Affected baselines

  • compiler/jsExportAssignmentNonMutableLocation.js.diff
  • conformance/commonJSImportClassTypeReference.js.diff
  • conformance/commonJSImportNestedClassTypeReference.js.diff
  • conformance/jsDeclarationsExportDoubleAssignmentInClosure.js.diff

Move diff files from submoduleTriaged/ to submoduleAccepted/ for:
- compiler/jsExportAssignmentNonMutableLocation.js.diff
- conformance/commonJSImportClassTypeReference.js.diff
- conformance/commonJSImportNestedClassTypeReference.js.diff
- conformance/jsDeclarationsExportDoubleAssignmentInClosure.js.diff

These are intentional changes - nested CJS exports are no longer bound,
and there is a new declaration emit error for it.

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CJS exports pattern changes in declaration emit Accept CJS exports pattern baseline diffs May 8, 2026
Copilot AI requested a review from RyanCavanaugh May 8, 2026 21:27
@RyanCavanaugh RyanCavanaugh marked this pull request as ready for review May 8, 2026 23:11
Copilot AI review requested due to automatic review settings May 8, 2026 23:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s baseline-tracking metadata to treat several CommonJS (CJS) declaration-emit output diffs as intentionally accepted, reflecting the current Corsa behavior around nested CJS export patterns.

Changes:

  • Moved four baseline .diff files from submoduleTriaged to submoduleAccepted (reference baselines).
  • Updated testdata/submoduleAccepted.txt and testdata/submoduleTriaged.txt to reflect the reclassification.
  • Added the corresponding accepted baseline diff files under testdata/baselines/reference/submoduleAccepted/....
Show a summary per file
File Description
testdata/submoduleTriaged.txt Removes the CJS declaration-emit diffs from the triaged list.
testdata/submoduleAccepted.txt Adds the CJS declaration-emit diffs to the accepted list under issue #3559.
testdata/baselines/reference/submoduleAccepted/compiler/jsExportAssignmentNonMutableLocation.js.diff Adds accepted baseline diff for compiler case related to CJS export assignment pattern.
testdata/baselines/reference/submoduleAccepted/conformance/commonJSImportClassTypeReference.js.diff Adds accepted baseline diff for conformance CJS import/class type reference behavior.
testdata/baselines/reference/submoduleAccepted/conformance/commonJSImportNestedClassTypeReference.js.diff Adds accepted baseline diff for nested CJS import/class type reference behavior.
testdata/baselines/reference/submoduleAccepted/conformance/jsDeclarationsExportDoubleAssignmentInClosure.js.diff Adds accepted baseline diff for JS declarations export double-assignment-in-closure case.

Copilot's findings

  • Files reviewed: 2/6 changed files
  • Comments generated: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Baselines: CJS exports pattern changes in declaration emit

4 participants