From b6260db5ee90c32ae7986fce33ddd537300a0d6d Mon Sep 17 00:00:00 2001 From: ReidenXerx Date: Sat, 16 May 2026 15:38:59 +0300 Subject: [PATCH] fix(js): add missing @returns JSDoc to consumer-before-provider fixture The js-consumer-before-provider fixture was missing a JSDoc @returns annotation on getUser(), preventing the scope-based resolution pipeline from propagating the return type and resolving u.save() to User#save. Mirrors the same pattern already applied to js-cross-file/src/models.js, and matches how the TypeScript equivalent uses an explicit `: User` return type annotation. Fixes the CI test failure introduced when JavaScript was added to MIGRATED_LANGUAGES in the JS scope-resolution migration (PR #1640). Co-authored-by: Cursor --- .../cross-file-binding/js-consumer-before-provider/b-provider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gitnexus/test/fixtures/cross-file-binding/js-consumer-before-provider/b-provider.js b/gitnexus/test/fixtures/cross-file-binding/js-consumer-before-provider/b-provider.js index 99c85948a..b04e7c84a 100644 --- a/gitnexus/test/fixtures/cross-file-binding/js-consumer-before-provider/b-provider.js +++ b/gitnexus/test/fixtures/cross-file-binding/js-consumer-before-provider/b-provider.js @@ -2,6 +2,7 @@ export class User { save() {} } +/** @returns {User} */ export function getUser() { return new User(); }