Skip to content

fix(browser): retain all literal worker import arguments - #680

Closed
rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-worker-import-arguments-20261006
Closed

rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-worker-import-arguments-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

What changed

Captured JavaScript dependency inspection now retains every literal argument of importScripts, in source order. Dynamic arguments remain unresolved and the existing deduplication still prevents repeated edges.

Consumer evidence

On an owned loopback page captured by actual Chrome 154, the complete public CdpBrowserProvider.analyzeBundle workflow previously recorded only one.js from importScripts("one.js", "two.js"). It now records both worker dependency edges. This verifies captured-source dependency analysis; it does not claim execution of the worker function.

Verification

  • New multi-argument/dynamic/dedup regression fails before, passes after; focused analyzer suite: 8 passed.
  • npm run check, npm run check:fast, git diff --check: passed.
  • Full npm run verify:browser: passed with real Chrome, including public browser/CLI/stdio workflows.
  • Complete public provider capture and ordered-edge assertions: passed.

No new tool, schema or execution authority. Hopper/Ghidra verification was not run because no binary provider behavior changes. AI assistance was used for investigation, implementation and verification. Hosted checks are pending on publication.

@morluto morluto left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Approve: importScripts now retains every literal argument in order with dynamic-arg skip and dedup preserved. Minimal loop change, regression covers multi-arg + dynamic + order. Checks green.

@morluto

morluto commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Superseded by #705, which cherry-picks this change (plus 13 sibling fixes) onto current main with conflict resolution and regenerated catalogs. Closing to keep one reviewable merge unit.

@morluto morluto closed this Oct 6, 2026
@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thanks, @rudycelekli, for your work on “fix(browser): retain all literal worker import arguments.” I appreciate your contribution to REA.

@morluto morluto added the bug Something isn't working label Oct 14, 2026
@morluto morluto added the area: runtime Process capture and runtime observation label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants