Repository navigation
fix(modes-processor): await assignToApiPath's now-async syncWrapper, thread await through every caller - #376
Merged
Merged
Conversation
…thread await through every caller assignToApiPath's Case 1 (both existing+value are wrapper proxies, mutateExisting supplied) called the now-async syncWrapper() without awaiting it, then returned synchronously — syncWrapper became async when it started force-materializing both sides of a collision (#364), but assignToApiPath was never updated to match. A caller regained control (and reported success) before syncWrapper's real work had actually finished, and any error thrown inside syncWrapper became an unhandled promise rejection instead of propagating to the caller. Made assignToApiPath itself async and await syncWrapper in Case 1; awaited its own call inside mergeApiObjects (previously unawaited); made #assignWithRoutineRevert (modes-processor.mjs) async and await its assign() callback, since a Promise is truthy regardless of what it resolves to — an un-awaited call there would never revert a rejected (skip/warn) candidate; and awaited all 12 of #assignWithRoutineRevert's own call sites plus the one inline pre-existing truthy-Promise check inside the multi-export assign callback. Fixes #369
Contributor
|
Resolves #369 — closed when this ships to the default branch. |
Shinrai
approved these changes
Sep 13, 2026
This was referenced Sep 14, 2026
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors