Skip to content

test(javascript): prove receiver ownership by source location - #15227

Merged
vincentkoc merged 9 commits into
mainfrom
test/javascript-receiver-source-assertions
Nov 30, 2026
Merged

vincentkoc merged 9 commits into
mainfrom
test/javascript-receiver-source-assertions

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The receiver regressions in #4656 compared aggregate event groups, which could stay green if a computed key and a method body were assigned to each other’s receivers. Assert the exact source operation’s receiver instead.

The unit tests now identify class decorators, heritage expressions, computed keys, member bodies and field initializers separately. The CLI/MCP fixture uses source markers for class inheritance, static/instance sides, and object-method key/body ownership. Existing candidate, uncertainty and stable-binding controls remain.

Validation

  • Canonical P2 review of fix(javascript): scope candidate this event receivers #4656 identified this test gap; these assertions address that finding. No production behavior changes.
  • Fresh public CLI and stdio MCP checks passed against fix(javascript): scope candidate this event receivers #4656’s exact head a75b2591cbf46c7e5fbb02898f521a8061fdce47, using its hosted runtime and locked dependencies on Node 24.22.1. The two adapters produced identical graphs, with the expected source-linked receiver identities for inheritance, static/instance separation, computed keys, decorators, heritage and class member initializers.
  • Diff and changed-file formatting checks passed on this branch. All exact-head hosted tests and static checks passed. No dependency-backed local suite was run in the worktree.

Scope and ownership

Test-only follow-up to #4656, preserving its contributor’s merged implementation. No new provider, execution or mutation authority, package changes, or release metadata. Maintainer-authored; the author-readiness declaration is exempt under CONTRIBUTING.md.

codex and others added 9 commits October 17, 2026 02:19
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.
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.
Retain instance/static sides and possible local-base event links on current main. Keep this identities incomplete and remove the shared callable-stack changes from the PR.
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.
…656-this-receivers

* commit '748537728fd7799f2d615bea9f6992b7653ba944': (663 commits)
  fix(audit): preserve env shebang argument ownership (#14075)
  feat(evtx): inventory Windows event log records offline
  docs(skill): replace the staged workflow with the rules it encodes (#10374)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (#7154)
  perf(evidence): inspect retained records without building a bundle (#15219)
  fix(process): report denied inspection as typed cleanup failures (#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (#15205)
  perf(png): reuse scanline storage in screenshot comparisons (#15215)
  fix(javascript): respect Node HTTP path validation (#9684)
  fix(windows): reject native addons with unusable delay-import tables (#15216)
  feat(artifacts): inventory Android super image metadata (#14928)
  fix(paths): reject dotted console device names for portability (#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (#15206)
  fix(screenshots): report the PNG comparison memory allowance (#15217)
  fix(process): compare Windows server paths by native realpath (#15044)
  fix(firmware): recheck decoded member source on completion (#15211)
  fix(artifacts): check signed BC4 and BC5 DDS payload extents (#15208)
  ...
…ivers

* origin/main:
  fix(javascript): scope candidate this event receivers (#4656)
  fix(config): validate target and loader options before printing MCP registrations (#9279)
  fix(native): honor cancellation during PE alias expansion (#9063)

# Conflicts:
#	src/domain/javascript/javascriptSemanticAnalysis.this_emitters.test.ts
#	tests/acceptance/applications/javascriptThisEmitters.test.ts
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T12:37:03.253136Z
We couldn’t complete this review. Comment @codex review to try again.
47194dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; the new assertions check receiver ownership more precisely without changing production behavior.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the new assertions check receiver ownership more precisely without changing production behavior.

Summary

This PR replaces aggregate receiver checks with checks tied to specific source operations.

  • Receiver tests now check the exact source operation.

Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit e9a6324 into main Nov 30, 2026
38 checks passed
@vincentkoc
vincentkoc deleted the test/javascript-receiver-source-assertions branch November 30, 2026 12:42
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.

3 participants