Repository navigation
test(browser): preserve unknown with-scope dependency bindings - #610
Closed
rudycelekli wants to merge 1 commit into
Closed
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
Author
|
The shared CI fixture is now corrected upstream in #609, including the recovered outer loader call. That supersedes this patch; I am closing this duplicate and updating the affected branches to preserve the owner’s fixture. The native Node and semantic-boundary evidence remains recorded for the review. |
Owner
|
Thanks, @rudycelekli, for your work on “test(browser): preserve unknown with-scope dependency bindings.” I appreciate your contribution to REA. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow up on merged #588: correct the recovered-source regression to preserve the existing unknown-binding contract inside a dynamic
withscope. This is the shared shard 3/4 failure observed on #601 and #603–608.No separate issue: this is a focused CI regression found in the maintainer-expanded coverage of #588, with direct failed job logs and local reproduction.
Problem and expected behavior
The new recovery fixture expects
require("./c.js")insidewith(scope)to establish a host-loader dependency. The existing semantic producer deliberately marks that binding unknown because the object can supply its ownrequire. Emitting that edge would guess an identity.The corrected fixture retains the ambiguous call and checks that it is omitted, adds a genuine unbound loader call outside the scope, retains the recovered static import, and still requires partial status and its limitation. Production behavior is unchanged.
Contract and boundary impact
Evidence and regression coverage
bae87b4reproduces the same failing test as the hosted shard.withexample calls the object's loader once and the host loader zero times.Validation performed
npm run build:cached— passed.npm run test:focused -- tests/boundary/browser/webSourceMapFetcher.test.ts— passed.npm run check— passed.Current ordinary-fix policy after #599 makes the complete local
check:proptional. Hosted aggregate coverage remains separate; no hosted pass is claimed here.Compatibility, safety and review
Test-only correction; no migration, provider, package or runtime behavior change. Owned fixed inputs were executed locally; no caller or ambient code was evaluated. Full Hopper/Ghidra/native-browser verification is not relevant to this test-only change.
The diff was peer-reviewed; the commit is signed with DCO sign-off. Prepared with AI assistance.